pub enum JsReservedWord {
Keyword(JsKeyword),
Enum,
Implements,
Interface,
Package,
Private,
Protected,
Public,
Static,
}Expand description
JavaScript reserved words, including keywords and common future reserved words.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for JsReservedWord
impl Clone for JsReservedWord
Source§fn clone(&self) -> JsReservedWord
fn clone(&self) -> JsReservedWord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JsReservedWord
impl Debug for JsReservedWord
Source§impl Display for JsReservedWord
impl Display for JsReservedWord
Source§impl FromStr for JsReservedWord
impl FromStr for JsReservedWord
Source§type Err = JsKeywordParseError
type Err = JsKeywordParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<JsReservedWord, <JsReservedWord as FromStr>::Err>
fn from_str( input: &str, ) -> Result<JsReservedWord, <JsReservedWord as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for JsReservedWord
impl Hash for JsReservedWord
Source§impl Ord for JsReservedWord
impl Ord for JsReservedWord
Source§fn cmp(&self, other: &JsReservedWord) -> Ordering
fn cmp(&self, other: &JsReservedWord) -> Ordering
1.21.0 (const: unstable) · 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 JsReservedWord
impl PartialEq for JsReservedWord
Source§fn eq(&self, other: &JsReservedWord) -> bool
fn eq(&self, other: &JsReservedWord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for JsReservedWord
impl PartialOrd for JsReservedWord
impl Copy for JsReservedWord
impl Eq for JsReservedWord
impl StructuralPartialEq for JsReservedWord
Auto Trait Implementations§
impl Freeze for JsReservedWord
impl RefUnwindSafe for JsReservedWord
impl Send for JsReservedWord
impl Sync for JsReservedWord
impl Unpin for JsReservedWord
impl UnsafeUnpin for JsReservedWord
impl UnwindSafe for JsReservedWord
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