pub struct Keywords { /* private fields */ }Expand description
The keywords of one dialect, ready to be looked up by symbol.
Built once per compilation, against the interner that compilation will use, before any source has been read.
Implementations§
Source§impl Keywords
impl Keywords
Sourcepub fn new(interner: &mut Interner, std: Std, gnu: bool) -> Keywords
pub fn new(interner: &mut Interner, std: Std, gnu: bool) -> Keywords
Interns every keyword spelling and resolves which of them this dialect has.
§Panics
Panics if interner has already been given one of these spellings, since the symbols
would no longer be one run and every lookup after that would be wrong. Build this
first, immediately after the interner itself.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keywords
impl RefUnwindSafe for Keywords
impl Send for Keywords
impl Sync for Keywords
impl Unpin for Keywords
impl UnsafeUnpin for Keywords
impl UnwindSafe for Keywords
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