pub struct FunctionParam<Name, Type>(pub Name, pub Type);Expand description
Renders an individual function parameter, Name: Type
Tuple Fields§
§0: Name§1: TypeTrait Implementations§
Source§impl<Name, Type> CanHaveAttributes for FunctionParam<Name, Type>
impl<Name, Type> CanHaveAttributes for FunctionParam<Name, Type>
Source§fn with_attributes<Attr>(self, attr: Attr) -> WithAttributes<Attr, Self>
fn with_attributes<Attr>(self, attr: Attr) -> WithAttributes<Attr, Self>
Adds attributes to this writable
Source§impl<Name: Clone, Type: Clone> Clone for FunctionParam<Name, Type>
impl<Name: Clone, Type: Clone> Clone for FunctionParam<Name, Type>
Source§fn clone(&self) -> FunctionParam<Name, Type>
fn clone(&self) -> FunctionParam<Name, Type>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Name, Type> Freeze for FunctionParam<Name, Type>
impl<Name, Type> RefUnwindSafe for FunctionParam<Name, Type>where
Name: RefUnwindSafe,
Type: RefUnwindSafe,
impl<Name, Type> Send for FunctionParam<Name, Type>
impl<Name, Type> Sync for FunctionParam<Name, Type>
impl<Name, Type> Unpin for FunctionParam<Name, Type>
impl<Name, Type> UnwindSafe for FunctionParam<Name, Type>where
Name: UnwindSafe,
Type: UnwindSafe,
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