Struct swc_ecma_preset_env::BrowserData
source · [−]pub struct BrowserData<T> where
T: Default, {Show 18 fields
pub chrome: T,
pub and_chr: T,
pub and_ff: T,
pub op_mob: T,
pub ie: T,
pub edge: T,
pub firefox: T,
pub safari: T,
pub node: T,
pub ios: T,
pub samsung: T,
pub opera: T,
pub android: T,
pub electron: T,
pub phantom: T,
pub opera_mobile: T,
pub rhino: T,
pub deno: T,
}
Expand description
A map without allocation.
Fields
chrome: T
and_chr: T
and_ff: T
op_mob: T
ie: T
edge: T
firefox: T
safari: T
node: T
ios: T
samsung: T
opera: T
android: T
electron: T
phantom: T
opera_mobile: T
rhino: T
deno: T
Implementations
sourceimpl BrowserData<Option<Version>>
impl BrowserData<Option<Version>>
pub fn is_any_target(&self) -> bool
pub fn parse_versions(
distribs: Vec<Distrib, Global>
) -> Result<BrowserData<Option<Version>>, Error>
sourceimpl<T> BrowserData<T> where
T: Default,
impl<T> BrowserData<T> where
T: Default,
Trait Implementations
sourceimpl<T> Clone for BrowserData<T> where
T: Clone + Default,
impl<T> Clone for BrowserData<T> where
T: Clone + Default,
sourcefn clone(&self) -> BrowserData<T>
fn clone(&self) -> BrowserData<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T> Debug for BrowserData<T> where
T: Debug + Default,
impl<T> Debug for BrowserData<T> where
T: Debug + Default,
sourceimpl<T> Default for BrowserData<T> where
T: Default,
impl<T> Default for BrowserData<T> where
T: Default,
sourcefn default() -> BrowserData<T>
fn default() -> BrowserData<T>
Returns the “default value” for a type. Read more
sourceimpl<'de, T> Deserialize<'de> for BrowserData<T> where
T: Default + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for BrowserData<T> where
T: Default + Deserialize<'de>,
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<BrowserData<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<BrowserData<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T> IntoIterator for BrowserData<T> where
T: Default,
impl<T> IntoIterator for BrowserData<T> where
T: Default,
impl<T> Copy for BrowserData<T> where
T: Copy + Default,
Auto Trait Implementations
impl<T> RefUnwindSafe for BrowserData<T> where
T: RefUnwindSafe,
impl<T> Send for BrowserData<T> where
T: Send,
impl<T> Sync for BrowserData<T> where
T: Sync,
impl<T> Unpin for BrowserData<T> where
T: Unpin,
impl<T> UnwindSafe for BrowserData<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more