pub enum TypeDefOrRef {
TypeDef(TypeDef),
TypeRef(TypeRef),
TypeSpec(TypeSpec),
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TypeDefOrRef
impl Clone for TypeDefOrRef
Source§fn clone(&self) -> TypeDefOrRef
fn clone(&self) -> TypeDefOrRef
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 moreSource§impl Debug for TypeDefOrRef
impl Debug for TypeDefOrRef
Source§impl Decode for TypeDefOrRef
impl Decode for TypeDefOrRef
Source§impl Ord for TypeDefOrRef
impl Ord for TypeDefOrRef
Source§fn cmp(&self, other: &TypeDefOrRef) -> Ordering
fn cmp(&self, other: &TypeDefOrRef) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TypeDefOrRef
impl PartialEq for TypeDefOrRef
Source§impl PartialOrd for TypeDefOrRef
impl PartialOrd for TypeDefOrRef
impl Copy for TypeDefOrRef
impl Eq for TypeDefOrRef
impl StructuralPartialEq for TypeDefOrRef
Auto Trait Implementations§
impl Freeze for TypeDefOrRef
impl RefUnwindSafe for TypeDefOrRef
impl Send for TypeDefOrRef
impl Sync for TypeDefOrRef
impl Unpin for TypeDefOrRef
impl UnsafeUnpin for TypeDefOrRef
impl UnwindSafe for TypeDefOrRef
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