Struct parcel_css::targets::Browsers
source · [−]pub struct Browsers {
pub android: Option<u32>,
pub chrome: Option<u32>,
pub edge: Option<u32>,
pub firefox: Option<u32>,
pub ie: Option<u32>,
pub ios_saf: Option<u32>,
pub opera: Option<u32>,
pub safari: Option<u32>,
pub samsung: Option<u32>,
}
Expand description
Browser versions to compile CSS for.
Versions are represented as a single 24-bit integer, with one byte
per major.minor.patch
component.
Example
This example represents a target of Safari 13.2.0.
use parcel_css::targets::Browsers;
let targets = Browsers {
safari: Some((13 << 16) | (2 << 8)),
..Browsers::default()
};
Fields
android: Option<u32>
chrome: Option<u32>
edge: Option<u32>
firefox: Option<u32>
ie: Option<u32>
ios_saf: Option<u32>
opera: Option<u32>
safari: Option<u32>
samsung: Option<u32>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Browsers
impl<'de> Deserialize<'de> for Browsers
sourcefn 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
impl Copy for Browsers
Auto Trait Implementations
impl RefUnwindSafe for Browsers
impl Send for Browsers
impl Sync for Browsers
impl Unpin for Browsers
impl UnwindSafe for Browsers
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
impl<T> Pointable for T
impl<T> Pointable for T
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