pub enum TypeOrMethodDef {
TypeDef(TypeDef),
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for TypeOrMethodDef
impl Clone for TypeOrMethodDef
source§fn clone(&self) -> TypeOrMethodDef
fn clone(&self) -> TypeOrMethodDef
Returns a copy 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 TypeOrMethodDef
impl Debug for TypeOrMethodDef
source§impl From<TypeDef> for TypeOrMethodDef
impl From<TypeDef> for TypeOrMethodDef
source§impl Hash for TypeOrMethodDef
impl Hash for TypeOrMethodDef
source§impl Ord for TypeOrMethodDef
impl Ord for TypeOrMethodDef
source§fn cmp(&self, other: &TypeOrMethodDef) -> Ordering
fn cmp(&self, other: &TypeOrMethodDef) -> 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 TypeOrMethodDef
impl PartialEq for TypeOrMethodDef
source§fn eq(&self, other: &TypeOrMethodDef) -> bool
fn eq(&self, other: &TypeOrMethodDef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TypeOrMethodDef
impl PartialOrd for TypeOrMethodDef
source§fn partial_cmp(&self, other: &TypeOrMethodDef) -> Option<Ordering>
fn partial_cmp(&self, other: &TypeOrMethodDef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TypeOrMethodDef
impl StructuralEq for TypeOrMethodDef
impl StructuralPartialEq for TypeOrMethodDef
Auto Trait Implementations§
impl RefUnwindSafe for TypeOrMethodDef
impl Send for TypeOrMethodDef
impl Sync for TypeOrMethodDef
impl Unpin for TypeOrMethodDef
impl UnwindSafe for TypeOrMethodDef
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