[−][src]Enum boa::syntax::ast::keyword::Keyword
Keywords are tokens that have special meaning in JavaScript.
In JavaScript you cannot use these reserved words as variables, labels, or function names.
More information:
Variants
The break
keyword.
More information:
The case
keyword.
More information:
The continue
keyword.
More information:
The const
keyword.
More information:
The default
keyword.
More information:
The delete
keyword.
More information:
The enum
keyword.
Future reserved keyword.
The finally
keyword.
More information:
The for
keyword.
More information:
The function
keyword.
More information:
The return
keyword
More information:
The switch
keyword.
More information:
The throw
keyword.
More information:
The typeof
keyword.
More information:
The void
keyword.
More information:
The while
keyword.
More information:
Implementations
impl Keyword
[src]
pub fn as_binop(self) -> Option<BinOp>
[src]
Gets the keyword as a binary operation, if this keyword is the in
keyword.
pub fn as_str(self) -> &'static str
[src]
Gets the keyword as a string.
Trait Implementations
impl Clone for Keyword
[src]
impl Copy for Keyword
[src]
impl Debug for Keyword
[src]
impl Display for Keyword
[src]
impl From<Keyword> for TokenKind
[src]
impl FromStr for Keyword
[src]
type Err = KeywordError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<Keyword> for Keyword
[src]
impl PartialEq<Keyword> for Punctuator
[src]
impl PartialEq<Punctuator> for Keyword
[src]
fn eq(&self, _other: &Punctuator) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for Keyword
[src]
impl TryInto<BinOp> for Keyword
[src]
Auto Trait Implementations
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnwindSafe for Keyword
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,