pub struct PubFn {
pub path: String,
pub file: String,
pub line: usize,
pub has_contract_macro: bool,
pub feature_gate: Option<String>,
}Expand description
A public function found in a crate’s source code.
Fields§
§path: StringFully qualified path (e.g., aprender::nn::ssm::ssm_scan)
file: StringFile where the function is defined
line: usizeLine number
has_contract_macro: boolWhether it has a #[contract] annotation
feature_gate: Option<String>Feature gate if the function is behind #[cfg(feature = "...")]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PubFn
impl RefUnwindSafe for PubFn
impl Send for PubFn
impl Sync for PubFn
impl Unpin for PubFn
impl UnsafeUnpin for PubFn
impl UnwindSafe for PubFn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more