Enum TypeDefKind
#[non_exhaustive]pub enum TypeDefKind<'a> {
Enum(&'a [Variant<'a>]),
Struct(&'a [Field<'a>]),
}Expand description
The body of a type declaration.
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.
Enum(&'a [Variant<'a>])
An enum with its variants.
Struct(&'a [Field<'a>])
A struct with its fields.
Trait Implementations§
§impl<'a> Clone for TypeDefKind<'a>
impl<'a> Clone for TypeDefKind<'a>
§fn clone(&self) -> TypeDefKind<'a>
fn clone(&self) -> TypeDefKind<'a>
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<'a> Copy for TypeDefKind<'a>
§impl<'a> Debug for TypeDefKind<'a>
impl<'a> Debug for TypeDefKind<'a>
impl<'a> Eq for TypeDefKind<'a>
§impl<'a> PartialEq for TypeDefKind<'a>
impl<'a> PartialEq for TypeDefKind<'a>
impl<'a> StructuralPartialEq for TypeDefKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeDefKind<'a>
impl<'a> RefUnwindSafe for TypeDefKind<'a>
impl<'a> Send for TypeDefKind<'a>
impl<'a> Sync for TypeDefKind<'a>
impl<'a> Unpin for TypeDefKind<'a>
impl<'a> UnsafeUnpin for TypeDefKind<'a>
impl<'a> UnwindSafe for TypeDefKind<'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