Enum caniuse_serde::ParentCategory
[−]
[src]
pub enum ParentCategory { CSS, HTML5, JS, JS_API, Other, Security, SVG, Unknown(String), // some variants omitted }
A ParentCategory is used in the caniuse.com UI. It is of limited use otherwise.
Variants
CSS
HTML5
JS
JS_API
Other
Security
SVG
Unknown(String)
A parent category that did not exist in the caniuse.com data when this library was created
Methods
impl ParentCategory
[src]
fn children<'a>(&self, canIUse: &'a CanIUse) -> Option<&'a [Category]>
[src]
A list of one or more categories scoped by this parent category. Of limited use outside of the caniuse.com UI. Only optional if the discriminant is ParentCategory::Unknown or the caniuse.com database is broken in some way.
Trait Implementations
impl Debug for ParentCategory
[src]
impl Clone for ParentCategory
[src]
fn clone(&self) -> ParentCategory
[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 ParentCategory
[src]
fn cmp(&self, __arg_0: &ParentCategory) -> 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 ParentCategory
[src]
fn partial_cmp(&self, __arg_0: &ParentCategory) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &ParentCategory) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &ParentCategory) -> 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: &ParentCategory) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &ParentCategory) -> 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 ParentCategory
[src]
impl PartialEq for ParentCategory
[src]
fn eq(&self, __arg_0: &ParentCategory) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParentCategory) -> bool
[src]
This method tests for !=
.
impl Hash for ParentCategory
[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
impl Default for ParentCategory
[src]
impl<'de> Deserialize<'de> for ParentCategory
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
Deserialize using Serde