#[non_exhaustive]pub enum TypeMember {
Comment(String),
Definition(TypeMemberDefinition),
}
Expand description
A member of a type definition, i.e. a struct member.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Comment(String)
Human-readable comment.
Definition(TypeMemberDefinition)
A structure field definition.
Trait Implementations§
Source§impl Clone for TypeMember
impl Clone for TypeMember
Source§fn clone(&self) -> TypeMember
fn clone(&self) -> TypeMember
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 TypeMember
impl Debug for TypeMember
Source§impl PartialEq for TypeMember
impl PartialEq for TypeMember
impl Eq for TypeMember
impl StructuralPartialEq for TypeMember
Auto Trait Implementations§
impl Freeze for TypeMember
impl RefUnwindSafe for TypeMember
impl Send for TypeMember
impl Sync for TypeMember
impl Unpin for TypeMember
impl UnwindSafe for TypeMember
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