Skip to content

DoumanAsh/func_

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages