Crate fn_meta[−][src]
Returns metadata about a function.
Examples
use fn_meta::FnMetadataExt; fn my_function(_: &S0, _: &mut S1, _: &S2) -> () {} let fn_metadata = my_function.meta(); assert_eq!( alloc::vec![TypeId::of::<S0>(), TypeId::of::<S2>()], fn_metadata.reads() ); assert_eq!(alloc::vec![TypeId::of::<S1>()], fn_metadata.writes());
Structs
FnMetadata | Metadata about a function |
Enums
AccessKind | Whether the parameter is immutable or mutable. |
Traits
AccessKindExt | Extracts the |
FnMetadataExt | Extension to return |