pub struct Word {
pub text: &'static str,
pub doc: &'static str,
pub reserved: bool,
pub roles: &'static [Role],
}Expand description
One word of the language.
Fields§
§text: &'static strHow it’s written.
doc: &'static strWhat it means, for editors (hover, completion).
reserved: boolReserved everywhere (a keyword); otherwise a name where its forms don’t apply.
roles: &'static [Role]What it does where it stands.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Word
impl RefUnwindSafe for Word
impl Send for Word
impl Sync for Word
impl Unpin for Word
impl UnsafeUnpin for Word
impl UnwindSafe for Word
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