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

A parent category that did not exist in the caniuse.com data when this library was created

Methods

impl ParentCategory
[src]

[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]

[src]

Formats the value using the given formatter.

impl Clone for ParentCategory
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for ParentCategory
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for ParentCategory
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[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]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Hash for ParentCategory
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for ParentCategory
[src]

[src]

Defaults to ParentCategory::Other

impl<'de> Deserialize<'de> for ParentCategory
[src]

[src]

Deserialize using Serde