pub enum HasAttribute {
MethodDef(MethodDef),
Field(Field),
TypeRef(TypeRef),
TypeDef(TypeDef),
Param(Param),
InterfaceImpl(InterfaceImpl),
MemberRef(MemberRef),
TypeSpec(TypeSpec),
GenericParam(GenericParam),
}Variants§
MethodDef(MethodDef)
Field(Field)
TypeRef(TypeRef)
TypeDef(TypeDef)
Param(Param)
InterfaceImpl(InterfaceImpl)
MemberRef(MemberRef)
TypeSpec(TypeSpec)
GenericParam(GenericParam)
Implementations§
Trait Implementations§
Source§impl Clone for HasAttribute
impl Clone for HasAttribute
Source§fn clone(&self) -> HasAttribute
fn clone(&self) -> HasAttribute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HasAttribute
impl Eq for HasAttribute
Source§impl Hash for HasAttribute
impl Hash for HasAttribute
Source§impl Ord for HasAttribute
impl Ord for HasAttribute
1.21.0 (const: unstable) · 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 HasAttribute
impl PartialEq for HasAttribute
Source§fn eq(&self, other: &HasAttribute) -> bool
fn eq(&self, other: &HasAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HasAttribute
impl PartialOrd for HasAttribute
impl StructuralPartialEq for HasAttribute
Auto Trait Implementations§
impl Freeze for HasAttribute
impl RefUnwindSafe for HasAttribute
impl Send for HasAttribute
impl Sync for HasAttribute
impl Unpin for HasAttribute
impl UnsafeUnpin for HasAttribute
impl UnwindSafe for HasAttribute
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