pub enum EcmaVersion {
ES3,
ES5,
ES2015,
ES2016,
ES2017,
ES2018,
ES2019,
ES2020,
ES2021,
ES2022,
ESNext,
}Expand description
ECMAScript version.
Variants§
ES3
ECMAScript 3 (1999).
ES5
ECMAScript 5 (2009).
ES2015
ECMAScript 2015 (ES6).
ES2016
ECMAScript 2016.
ES2017
ECMAScript 2017.
ES2018
ECMAScript 2018.
ES2019
ECMAScript 2019.
ES2020
ECMAScript 2020.
ES2021
ECMAScript 2021.
ES2022
ECMAScript 2022.
ESNext
Latest ECMAScript version.
Trait Implementations§
Source§impl Clone for EcmaVersion
impl Clone for EcmaVersion
Source§fn clone(&self) -> EcmaVersion
fn clone(&self) -> EcmaVersion
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 EcmaVersion
impl Debug for EcmaVersion
Source§impl<'de> Deserialize<'de> for EcmaVersion
impl<'de> Deserialize<'de> for EcmaVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for EcmaVersion
impl Hash for EcmaVersion
Source§impl PartialEq for EcmaVersion
impl PartialEq for EcmaVersion
Source§impl Serialize for EcmaVersion
impl Serialize for EcmaVersion
impl Copy for EcmaVersion
impl Eq for EcmaVersion
impl StructuralPartialEq for EcmaVersion
Auto Trait Implementations§
impl Freeze for EcmaVersion
impl RefUnwindSafe for EcmaVersion
impl Send for EcmaVersion
impl Sync for EcmaVersion
impl Unpin for EcmaVersion
impl UnsafeUnpin for EcmaVersion
impl UnwindSafe for EcmaVersion
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