pub struct BrowserData<T: Default> {Show 26 fields
pub chrome: T,
pub chrome_android: T,
pub firerfox_android: T,
pub opera_android: T,
pub quest: T,
pub react_native: 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,
pub hermes: T,
pub oculus: T,
pub bun: T,
}
Expand description
A map without allocation.
Fields§
§chrome: T
§chrome_android: T
§firerfox_android: T
§opera_android: T
§quest: T
§react_native: 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
§hermes: T
§oculus: T
§bun: T
Implementations§
source§impl<T: Default> BrowserData<T>
impl<T: Default> BrowserData<T>
pub fn iter(&self) -> BrowserDataRefIter<'_, T> ⓘ
source§impl<T: Default> BrowserData<T>
impl<T: Default> BrowserData<T>
pub fn iter_mut(&mut self) -> BrowserDataMutIter<'_, T> ⓘ
source§impl<T: Default> BrowserData<T>
impl<T: Default> BrowserData<T>
Trait Implementations§
source§impl<T: Clone + Default> Clone for BrowserData<T>
impl<T: Clone + Default> Clone for BrowserData<T>
source§fn clone(&self) -> BrowserData<T>
fn clone(&self) -> BrowserData<T>
Returns a copy 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<T: Default + Default> Default for BrowserData<T>
impl<T: Default + Default> Default for BrowserData<T>
source§fn default() -> BrowserData<T>
fn default() -> BrowserData<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for BrowserData<T>
impl<'de, T> Deserialize<'de> for BrowserData<T>
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<T: Default> IntoIterator for BrowserData<T>
impl<T: Default> IntoIterator for BrowserData<T>
source§impl<T> Serialize for BrowserData<T>
impl<T> Serialize for BrowserData<T>
impl<T: Copy + Default> Copy for BrowserData<T>
impl<T: Eq + Default> Eq for BrowserData<T>
impl<T: Default> StructuralPartialEq for BrowserData<T>
Auto Trait Implementations§
impl<T> Freeze for BrowserData<T>where
T: Freeze,
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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more