pub enum HasAttribute<'a> {
MethodDef(MethodDef<'a>),
Field(Field<'a>),
TypeRef(TypeRef<'a>),
TypeDef(TypeDef<'a>),
MethodParam(MethodParam<'a>),
InterfaceImpl(InterfaceImpl<'a>),
MemberRef(MemberRef<'a>),
TypeSpec(TypeSpec<'a>),
GenericParam(GenericParam<'a>),
}Variants§
MethodDef(MethodDef<'a>)
Field(Field<'a>)
TypeRef(TypeRef<'a>)
TypeDef(TypeDef<'a>)
MethodParam(MethodParam<'a>)
InterfaceImpl(InterfaceImpl<'a>)
MemberRef(MemberRef<'a>)
TypeSpec(TypeSpec<'a>)
GenericParam(GenericParam<'a>)
Implementations§
Trait Implementations§
Source§impl<'a> Clone for HasAttribute<'a>
impl<'a> Clone for HasAttribute<'a>
Source§fn clone(&self) -> HasAttribute<'a>
fn clone(&self) -> HasAttribute<'a>
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<'a> Debug for HasAttribute<'a>
impl<'a> Debug for HasAttribute<'a>
Source§impl<'a> Decode<'a> for HasAttribute<'a>
impl<'a> Decode<'a> for HasAttribute<'a>
Source§impl<'a> From<Field<'a>> for HasAttribute<'a>
impl<'a> From<Field<'a>> for HasAttribute<'a>
Source§impl<'a> From<GenericParam<'a>> for HasAttribute<'a>
impl<'a> From<GenericParam<'a>> for HasAttribute<'a>
Source§fn from(from: GenericParam<'a>) -> Self
fn from(from: GenericParam<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<InterfaceImpl<'a>> for HasAttribute<'a>
impl<'a> From<InterfaceImpl<'a>> for HasAttribute<'a>
Source§fn from(from: InterfaceImpl<'a>) -> Self
fn from(from: InterfaceImpl<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<MemberRef<'a>> for HasAttribute<'a>
impl<'a> From<MemberRef<'a>> for HasAttribute<'a>
Source§impl<'a> From<MethodDef<'a>> for HasAttribute<'a>
impl<'a> From<MethodDef<'a>> for HasAttribute<'a>
Source§impl<'a> From<MethodParam<'a>> for HasAttribute<'a>
impl<'a> From<MethodParam<'a>> for HasAttribute<'a>
Source§fn from(from: MethodParam<'a>) -> Self
fn from(from: MethodParam<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<TypeDef<'a>> for HasAttribute<'a>
impl<'a> From<TypeDef<'a>> for HasAttribute<'a>
Source§impl<'a> From<TypeRef<'a>> for HasAttribute<'a>
impl<'a> From<TypeRef<'a>> for HasAttribute<'a>
Source§impl<'a> From<TypeSpec<'a>> for HasAttribute<'a>
impl<'a> From<TypeSpec<'a>> for HasAttribute<'a>
Source§impl<'a> Hash for HasAttribute<'a>
impl<'a> Hash for HasAttribute<'a>
Source§impl<'a> Ord for HasAttribute<'a>
impl<'a> Ord for HasAttribute<'a>
Source§fn cmp(&self, other: &HasAttribute<'a>) -> Ordering
fn cmp(&self, other: &HasAttribute<'a>) -> 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<'a> PartialEq for HasAttribute<'a>
impl<'a> PartialEq for HasAttribute<'a>
Source§impl<'a> PartialOrd for HasAttribute<'a>
impl<'a> PartialOrd for HasAttribute<'a>
impl<'a> Eq for HasAttribute<'a>
impl<'a> StructuralPartialEq for HasAttribute<'a>
Auto Trait Implementations§
impl<'a> Freeze for HasAttribute<'a>
impl<'a> RefUnwindSafe for HasAttribute<'a>
impl<'a> Send for HasAttribute<'a>
impl<'a> Sync for HasAttribute<'a>
impl<'a> Unpin for HasAttribute<'a>
impl<'a> UnwindSafe for HasAttribute<'a>
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