Enum swc::config::JscTarget[][src]

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

Variants

Es3
Es5
Es2015
Es2016
Es2017
Es2018
Es2019
Es2020
Es2021

Implementations

impl EsVersion[src]

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

Get the latest version. This is es2021 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 Merge for JscTarget[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

impl RefUnwindSafe for EsVersion

impl Send for EsVersion

impl Sync for EsVersion

impl Unpin for EsVersion

impl UnwindSafe for EsVersion

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> CallHasher for T where
    T: Hash
[src]

impl<T> CallHasher for T where
    T: Hash + ?Sized
[src]

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[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<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

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

type Output = T

Should always be Self

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.