pub struct AssociatedTypeDef<VarName, Value>(pub VarName, pub Value);Expand description
Declares an associated type, rendering as type VarName = Value;.
Adds new lines before and after.
Tuple Fields§
§0: VarName§1: ValueTrait Implementations§
Source§impl<VarName: Clone, Value: Clone> Clone for AssociatedTypeDef<VarName, Value>
impl<VarName: Clone, Value: Clone> Clone for AssociatedTypeDef<VarName, Value>
Source§fn clone(&self) -> AssociatedTypeDef<VarName, Value>
fn clone(&self) -> AssociatedTypeDef<VarName, Value>
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<VarName, Value> Freeze for AssociatedTypeDef<VarName, Value>
impl<VarName, Value> RefUnwindSafe for AssociatedTypeDef<VarName, Value>where
VarName: RefUnwindSafe,
Value: RefUnwindSafe,
impl<VarName, Value> Send for AssociatedTypeDef<VarName, Value>
impl<VarName, Value> Sync for AssociatedTypeDef<VarName, Value>
impl<VarName, Value> Unpin for AssociatedTypeDef<VarName, Value>
impl<VarName, Value> UnwindSafe for AssociatedTypeDef<VarName, Value>where
VarName: UnwindSafe,
Value: 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