#[non_exhaustive]pub enum NameRole {
Variable,
Function,
Option,
Markup,
Attribute,
}Expand description
Which kind of name was invalid.
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.
Variable
A variable (reference or declaration).
Function
A function identifier.
Option
An option identifier.
Markup
A markup identifier.
Attribute
An attribute identifier.
Trait Implementations§
impl Copy for NameRole
impl Eq for NameRole
impl StructuralPartialEq for NameRole
Auto Trait Implementations§
impl Freeze for NameRole
impl RefUnwindSafe for NameRole
impl Send for NameRole
impl Sync for NameRole
impl Unpin for NameRole
impl UnsafeUnpin for NameRole
impl UnwindSafe for NameRole
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