Enum css::domain::VendorPrefix
[−]
[src]
pub enum VendorPrefix { o, moz, epub, webkit, ms, servo, Unrecognised(String), }
Vendor prefixes Sort order is such that -o- sorts before -webkit- and -ms- sorts after -webkit-, but -epub- (which is only supported by Webkit) sorts before -webkit- There ae other, now rare prefixes, such as -vx- (for Opera before -o-), -wap- (for WAP; a very defunct standard from 1999), -khtml- (for Webkit's predecessor) and so on. However, there are hardly ever encountered and so aren't explicitly coded for.
Variants
o
-o- prefix (legacy Opera Presto prefix).
moz
-moz- prefix.
epub
-epub- prefix
webkit
-webkit- prefix (Is sometimes also used by IE, Edge and Blink-based browsers (Chrome and Opera)).
ms
-ms- prefix.
servo
-servo- prefix
Unrecognised(String)
An unrecognised prefix, usually implies unusual or mistaken CSS
Methods
impl VendorPrefix
[src]
fn findPrefixIfAnyForAsciiLowerCaseName<'i>(
asciiLowerCaseName: String
) -> (Option<VendorPrefix>, String)
[src]
asciiLowerCaseName: String
) -> (Option<VendorPrefix>, String)
Finds a prefix for an ascii lower case name, returning the prefix (if any) and the unprefixed name
Is not confused by CSS custom properties which start --
fn prefix(&self, name: &str) -> String
[src]
Prefixes a name with a vendor prefix, eg 'background' might become '-moz-background' if Self is moz
Trait Implementations
impl Debug for VendorPrefix
[src]
impl Clone for VendorPrefix
[src]
fn clone(&self) -> VendorPrefix
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for VendorPrefix
[src]
fn cmp(&self, __arg_0: &VendorPrefix) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for VendorPrefix
[src]
fn partial_cmp(&self, __arg_0: &VendorPrefix) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &VendorPrefix) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &VendorPrefix) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &VendorPrefix) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &VendorPrefix) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Eq for VendorPrefix
[src]
impl PartialEq for VendorPrefix
[src]
fn eq(&self, __arg_0: &VendorPrefix) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &VendorPrefix) -> bool
[src]
This method tests for !=
.
impl Hash for VendorPrefix
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more