pub struct Function { /* private fields */ }
Implementations§
Source§impl Function
impl Function
pub fn new( name: FunctionName, line_number: LineNumber, execution_count: ExecutionCount, ) -> Self
pub fn name(&self) -> &FunctionName
pub fn line_number(&self) -> &LineNumber
pub fn execution_count(&self) -> &ExecutionCount
pub fn is_hit(&self) -> bool
Trait Implementations§
Source§impl<'a> From<&'a FunctionData> for Function
impl<'a> From<&'a FunctionData> for Function
Source§fn from(function_data: &'a FunctionData) -> Self
fn from(function_data: &'a FunctionData) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a FunctionName> for Function
impl<'a> From<&'a FunctionName> for Function
Source§fn from(function_name: &'a FunctionNameRecord) -> Self
fn from(function_name: &'a FunctionNameRecord) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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