pub struct TypeRef(/* private fields */);
Expand description
A TypeRef
is a reference to a Type
.
Most importantly, it implements AsRef<Type>
and Deref<Target = Type>
.
It also has a cheap Clone
– only the reference is cloned, not the
underlying Type
.
Trait Implementations§
source§impl PartialEq for TypeRef
impl PartialEq for TypeRef
impl Eq for TypeRef
impl StructuralPartialEq for TypeRef
Auto Trait Implementations§
impl RefUnwindSafe for TypeRef
impl Send for TypeRef
impl Sync for TypeRef
impl Unpin for TypeRef
impl UnwindSafe for TypeRef
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