pub enum TagKind {
Struct,
Union,
Enum,
}Expand description
Which keyword introduced a tag.
Kept because the three do not interchange, and because the diagnostic for using the wrong one has to name what was declared. Whether a mismatch is an error is semantic analysis’s call; the parser only records what it saw.
Variants§
Trait Implementations§
impl Copy for TagKind
impl Eq for TagKind
impl StructuralPartialEq for TagKind
Auto Trait Implementations§
impl Freeze for TagKind
impl RefUnwindSafe for TagKind
impl Send for TagKind
impl Sync for TagKind
impl Unpin for TagKind
impl UnsafeUnpin for TagKind
impl UnwindSafe for TagKind
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