Struct caniuse_serde::Version [] [src]

pub struct Version(_, _);

Version "3" and "3.0" are not considered equal; "3.0" is greater than "3". Opera and iOS Safari have hyphenation ranges of versions, eg "4.0-4.2". These are converted to a version matching the lower of the range, eg "4.0". Safari also has "TP" for its latest version, which is not stable across time and is converted to the VersionPart::TechnologyPreview, and Opera Mini just has "all"; it is effectively unversioned.

Methods

impl Version
[src]

[src]

Special method to construct a version representing the Opera Mini all version

[src]

Special method to construct a version representing the Safari TP version

[src]

Special method to construct a Version that only represents a major version, eg 10

[src]

Special method to construct a Version that represents a major-minor version, eg 12.1

[src]

Special method to construct a Version that represents a major-minor-revision version, eg 4.5.6

[src]

Is this version the Safari Technology Preview?

[src]

Is this version "0" (sometimes found in caniuse.com's Regional data) or Unknown

Trait Implementations

impl Debug for Version
[src]

[src]

Formats the value using the given formatter.

impl Clone for Version
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for Version
[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 Version
[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 Version
[src]

impl PartialEq for Version
[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 Version
[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<'de> Deserialize<'de> for Version
[src]

[src]

Deserialize using Serde

impl<'a, I: Into<&'a str>> From<I> for Version
[src]

[src]

Converts into a Version anything that can be converted into '&str'. Use with into().

impl FromStr for Version
[src]

The associated error which can be returned from parsing.

[src]

Converts into a Version anything from '&str'. Use with parse().