pub struct Keyword {
pub word: &'static str,
pub kind: KeywordKind,
pub opens_block: bool,
}Expand description
One reserved word.
Fields§
§word: &'static strThe word.
kind: KeywordKindThe category.
opens_block: boolWhether it is the first word of syntax that opens a block with { at the end of the line.
Trait Implementations§
impl Copy for Keyword
impl Eq for Keyword
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Forget for Keyword
impl Freeze for Keyword
impl Move for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnsafeUnpin for Keyword
impl UnwindSafe for Keyword
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