pub struct Keyword {
pub text: &'static str,
pub top_level: bool,
pub card: Card,
}Expand description
One keyword: its spelling, whether it may begin a top-level statement, and its syntax card.
Fields§
§text: &'static strThe CAPS spelling (a kw constant).
top_level: boolWhether it may begin a top-level statement — used by recovery resync and the “expected one of these statements” menu.
card: CardThe keyword’s syntax card.
Auto Trait Implementations§
impl Freeze 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