pub struct Function {
pub name: Rc<str>,
pub parameter_count: Option<u16>,
pub kind: FunctionKind,
pub hidden_in_stack_traces: bool,
}Expand description
A function prototype.
Fields§
§name: Rc<str>§parameter_count: Option<u16>§kind: FunctionKindSet to true if the function is to be hidden in stack traces.
This is useful for functions that are implementation details, such as trait function shims.
Trait Implementations§
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