as-method 0.1.0

Call function using the method syntax!
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 5.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 279.11 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • mu001999/as-method
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mu001999

as-method

Call function using the method syntax!

Example

mod a {
    use as_method::as_method;

    #[as_method]
    pub fn foo<T: std::fmt::Debug>(x: impl std::fmt::Debug, y: T) {
        println!("{x:?}, {y:?}");
    }
}

use a::foo;

fn main() {
    1.foo(2);
}