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§
Auto 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