pub struct TypeAsTrait<Type, Trait>(pub Type, pub Trait);Expand description
Uses the as expression to perform a qualified trait cast (ready for a method call).
I.e., this will render as <Type as Trait>.
Tuple Fields§
§0: Type§1: TraitTrait Implementations§
Source§impl<Type: Clone, Trait: Clone> Clone for TypeAsTrait<Type, Trait>
impl<Type: Clone, Trait: Clone> Clone for TypeAsTrait<Type, Trait>
Source§fn clone(&self) -> TypeAsTrait<Type, Trait>
fn clone(&self) -> TypeAsTrait<Type, Trait>
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<Type, Trait> Freeze for TypeAsTrait<Type, Trait>
impl<Type, Trait> RefUnwindSafe for TypeAsTrait<Type, Trait>where
Type: RefUnwindSafe,
Trait: RefUnwindSafe,
impl<Type, Trait> Send for TypeAsTrait<Type, Trait>
impl<Type, Trait> Sync for TypeAsTrait<Type, Trait>
impl<Type, Trait> Unpin for TypeAsTrait<Type, Trait>
impl<Type, Trait> UnwindSafe for TypeAsTrait<Type, Trait>where
Type: UnwindSafe,
Trait: 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