pub struct TypeRef(_);
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
sourceimpl PartialEq<TypeRef> for TypeRef
impl PartialEq<TypeRef> for TypeRef
impl Eq for TypeRef
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more