pub enum MemberKind {
Field,
Variant,
AssocConst,
AssocType,
RequiredMethod,
}Expand description
What a Member is.
Variants§
Field
A named or positional field.
Variant
An enum variant.
AssocConst
An associated constant.
AssocType
An associated type.
RequiredMethod
A required (bodiless) trait method signature.
Trait Implementations§
Source§impl Clone for MemberKind
impl Clone for MemberKind
impl Copy for MemberKind
Source§impl Debug for MemberKind
impl Debug for MemberKind
Source§impl<'de> Deserialize<'de> for MemberKind
impl<'de> Deserialize<'de> for MemberKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MemberKind
Source§impl Hash for MemberKind
impl Hash for MemberKind
Source§impl Ord for MemberKind
impl Ord for MemberKind
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MemberKind
impl PartialEq for MemberKind
Source§impl PartialOrd for MemberKind
impl PartialOrd for MemberKind
Source§impl Serialize for MemberKind
impl Serialize for MemberKind
impl StructuralPartialEq for MemberKind
Auto Trait Implementations§
impl Freeze for MemberKind
impl RefUnwindSafe for MemberKind
impl Send for MemberKind
impl Sync for MemberKind
impl Unpin for MemberKind
impl UnsafeUnpin for MemberKind
impl UnwindSafe for MemberKind
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