func_ 1.0.1

Proc macro to add function name constant within body of function
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 5.6 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 31.07 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • DoumanAsh/func_
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • DoumanAsh

func_

Rust Crates.io Documentation

Proc macro to insert function name within body of function because Rust is incapable of doing simple things

Once type_name is stable in const context this macro can be replaced properly with simple function call on function type.

Usage

use func_::_func_;

#[_func_]
fn my_func() {
    assert_eq!(__func__, "my_func");
}