pub struct TypeAsType<Type1, Type2>(pub Type1, pub Type2);Expand description
Uses the as expression to coerce one type to another.
This will render as <Type1 as Type2>.
Tuple Fields§
§0: Type1§1: Type2Trait Implementations§
Source§impl<Type1: Clone, Type2: Clone> Clone for TypeAsType<Type1, Type2>
impl<Type1: Clone, Type2: Clone> Clone for TypeAsType<Type1, Type2>
Source§fn clone(&self) -> TypeAsType<Type1, Type2>
fn clone(&self) -> TypeAsType<Type1, Type2>
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<Type1, Type2> Freeze for TypeAsType<Type1, Type2>
impl<Type1, Type2> RefUnwindSafe for TypeAsType<Type1, Type2>where
Type1: RefUnwindSafe,
Type2: RefUnwindSafe,
impl<Type1, Type2> Send for TypeAsType<Type1, Type2>
impl<Type1, Type2> Sync for TypeAsType<Type1, Type2>
impl<Type1, Type2> Unpin for TypeAsType<Type1, Type2>
impl<Type1, Type2> UnwindSafe for TypeAsType<Type1, Type2>where
Type1: UnwindSafe,
Type2: 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