Struct marker_api::ast::FnParam
source · #[repr(C)]pub struct FnParam<'ast> { /* private fields */ }Expand description
A parameter for a FnItem, like:
// A parameter with a name and type
// vvvvvvvvv
fn function_with_ident(name: u32) {}
// A parameter with a pattern and type
// vvvvvvvvvvvvvvvvvv
fn function_with_pattern((a, b): (u32, i32)) {}Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'ast> RefUnwindSafe for FnParam<'ast>
impl<'ast> !Send for FnParam<'ast>
impl<'ast> !Sync for FnParam<'ast>
impl<'ast> Unpin for FnParam<'ast>
impl<'ast> UnwindSafe for FnParam<'ast>
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