#[non_exhaustive]pub enum TypeKind {
Defined(String),
Enumeration(Vec<String>),
Select(Vec<String>),
}Expand description
Structural shape of a TYPE declaration.
#[non_exhaustive]: a match needs a wildcard arm, so recognising a
further declaration form later is not a breaking change.
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.
Defined(String)
Alias or other right-hand-side syntax retained as text.
Enumeration(Vec<String>)
ENUMERATION OF member names.
Select(Vec<String>)
SELECT member type names.
Trait Implementations§
impl Eq for TypeKind
impl StructuralPartialEq for TypeKind
Auto Trait Implementations§
impl Freeze for TypeKind
impl RefUnwindSafe for TypeKind
impl Send for TypeKind
impl Sync for TypeKind
impl Unpin for TypeKind
impl UnsafeUnpin for TypeKind
impl UnwindSafe for TypeKind
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