pub enum PartialKeyword {
Type,
Continue,
Export,
TypeOf,
}Expand description
Words that can be keywords or identifiers, depending on the context.
Check Keyword.
Variants§
Type
The type keyword
Continue
The continue keyword
Export
The export keyword
TypeOf
The typeof keyword
Implementations§
Source§impl PartialKeyword
impl PartialKeyword
Sourcepub fn try_from_str(value: &str) -> Option<PartialKeyword>
pub fn try_from_str(value: &str) -> Option<PartialKeyword>
Try creating this item from a string.
Trait Implementations§
Source§impl Clone for PartialKeyword
impl Clone for PartialKeyword
Source§fn clone(&self) -> PartialKeyword
fn clone(&self) -> PartialKeyword
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartialKeyword
impl Debug for PartialKeyword
Source§impl Display for PartialKeyword
impl Display for PartialKeyword
Source§impl From<PartialKeyword> for TokenType
impl From<PartialKeyword> for TokenType
Source§fn from(value: PartialKeyword) -> TokenType
fn from(value: PartialKeyword) -> TokenType
Converts to this type from the input type.
Source§impl Hash for PartialKeyword
impl Hash for PartialKeyword
Source§impl Ord for PartialKeyword
impl Ord for PartialKeyword
Source§fn cmp(&self, other: &PartialKeyword) -> Ordering
fn cmp(&self, other: &PartialKeyword) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PartialKeyword
impl PartialEq for PartialKeyword
Source§impl PartialOrd for PartialKeyword
impl PartialOrd for PartialKeyword
impl Copy for PartialKeyword
impl Eq for PartialKeyword
impl StructuralPartialEq for PartialKeyword
Auto Trait Implementations§
impl Freeze for PartialKeyword
impl RefUnwindSafe for PartialKeyword
impl Send for PartialKeyword
impl Sync for PartialKeyword
impl Unpin for PartialKeyword
impl UnwindSafe for PartialKeyword
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