pub struct Param {
pub name: String,
pub mode: Mode,
pub ty: Option<Type>,
pub is_self: bool,
}Fields§
§name: StringThe name of the parameter (self for the receiver, arg<i> for patterns).
mode: Mode§ty: Option<Type>The type, without the reference for Ref and RefMut; None for self receivers.
is_self: boolTrait Implementations§
Auto Trait Implementations§
impl !Send for Param
impl !Sync for Param
impl Forget for Param
impl Freeze for Param
impl Move for Param
impl RefUnwindSafe for Param
impl Unpin for Param
impl UnsafeUnpin for Param
impl UnwindSafe for Param
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