# as-method Call function using the method syntax! ## Example ```rust mod a { use as_method::as_method; #[as_method] pub fn foo(x: impl std::fmt::Debug, y: T) { println!("{x:?}, {y:?}"); } } use a::foo; fn main() { 1.foo(2); } ```