Enum swc_ecma_parser::JscTarget[][src]

pub enum JscTarget {
    Es3,
    Es5,
    Es2015,
    Es2016,
    Es2017,
    Es2018,
    Es2019,
    Es2020,
}

Variants

Es3
Es5
Es2015
Es2016
Es2017
Es2018
Es2019
Es2020

Implementations

impl EsVersion[src]

pub const fn latest() -> EsVersion[src]

Get the latest version. This is es2020 for now, but it will be changed if a new version of specification is released.

Trait Implementations

impl Clone for EsVersion[src]

impl Copy for EsVersion[src]

impl Debug for EsVersion[src]

impl Default for EsVersion[src]

impl<'de> Deserialize<'de> for EsVersion[src]

impl Eq for EsVersion[src]

impl Hash for EsVersion[src]

impl Ord for EsVersion[src]

impl PartialEq<EsVersion> for EsVersion[src]

impl PartialOrd<EsVersion> for EsVersion[src]

impl Serialize for EsVersion[src]

impl StructuralEq for EsVersion[src]

impl StructuralPartialEq for EsVersion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Node for T where
    T: Any + ?Sized
[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.