pub enum KeywordHardness {
Hard,
Soft,
}Expand description
The hardness of a keyword.
Variants§
Hard
Hard keywords present when an identifier is expected will fail to parse.
Soft
Soft keywords are not fully reserved identifiers, they instead only have a different meaning when directly expected. Soft keywords can be used as identifiers.
Trait Implementations§
Source§impl Clone for KeywordHardness
impl Clone for KeywordHardness
Source§fn clone(&self) -> KeywordHardness
fn clone(&self) -> KeywordHardness
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 KeywordHardness
impl Debug for KeywordHardness
Source§impl Default for KeywordHardness
impl Default for KeywordHardness
Source§fn default() -> KeywordHardness
fn default() -> KeywordHardness
Returns the “default value” for a type. Read more
Source§impl Display for KeywordHardness
impl Display for KeywordHardness
Source§impl Hash for KeywordHardness
impl Hash for KeywordHardness
Source§impl Ord for KeywordHardness
impl Ord for KeywordHardness
Source§fn cmp(&self, other: &KeywordHardness) -> Ordering
fn cmp(&self, other: &KeywordHardness) -> 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 KeywordHardness
impl PartialEq for KeywordHardness
Source§impl PartialOrd for KeywordHardness
impl PartialOrd for KeywordHardness
impl Copy for KeywordHardness
impl Eq for KeywordHardness
impl StructuralPartialEq for KeywordHardness
Auto Trait Implementations§
impl Freeze for KeywordHardness
impl RefUnwindSafe for KeywordHardness
impl Send for KeywordHardness
impl Sync for KeywordHardness
impl Unpin for KeywordHardness
impl UnsafeUnpin for KeywordHardness
impl UnwindSafe for KeywordHardness
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