pub enum FnArg {
Receiver(Receiver),
Typed(PatType),
}Expand description
An argument in a function signature: the n: usize in fn f(n: usize).
Variants§
Receiver(Receiver)
The self argument of an associated method.
Typed(PatType)
A function argument accepted by pattern and type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FnArg
impl RefUnwindSafe for FnArg
impl !Send for FnArg
impl !Sync for FnArg
impl Unpin for FnArg
impl UnwindSafe for FnArg
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