Struct cov::raw::Version [−][src]
pub struct Version(_);
File version.
Methods
impl Version
[src]
impl Version
pub fn try_from(raw_version: u32) -> Result<Version>
[src]
pub fn try_from(raw_version: u32) -> Result<Version>
Converts a raw version number to a Version
structure.
Errors
Returns UnsupportedVersion
if the version is not supported by this crate.
Trait Implementations
impl Copy for Version
[src]
impl Copy for Version
impl Clone for Version
[src]
impl Clone for Version
fn clone(&self) -> Version
[src]
fn clone(&self) -> Version
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Version
[src]
impl PartialEq for Version
fn eq(&self, other: &Version) -> bool
[src]
fn eq(&self, other: &Version) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Version) -> bool
[src]
fn ne(&self, other: &Version) -> bool
This method tests for !=
.
impl Eq for Version
[src]
impl Eq for Version
impl PartialOrd for Version
[src]
impl PartialOrd for Version
fn partial_cmp(&self, other: &Version) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Version) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Version) -> bool
[src]
fn lt(&self, other: &Version) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Version) -> bool
[src]
fn le(&self, other: &Version) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Version) -> bool
[src]
fn gt(&self, other: &Version) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Version) -> bool
[src]
fn ge(&self, other: &Version) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Version
[src]
impl Ord for Version
fn cmp(&self, other: &Version) -> Ordering
[src]
fn cmp(&self, other: &Version) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for Version
[src]
impl Hash for Version
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Default for Version
[src]
impl Default for Version
impl Debug for Version
[src]
impl Debug for Version
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Version
[src]
impl Display for Version
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for Version
[src]
impl FromStr for Version
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self>
[src]
fn from_str(s: &str) -> Result<Self>
Parses a string s
to return a value of this type. Read more
impl Serialize for Version
[src]
impl Serialize for Version
fn serialize<S: Serializer>(&self, serializer: S) -> StdResult<S::Ok, S::Error>
[src]
fn serialize<S: Serializer>(&self, serializer: S) -> StdResult<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Version
[src]
impl<'de> Deserialize<'de> for Version
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> StdResult<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl SerializeWithInterner for Version
[src]
impl SerializeWithInterner for Version
fn serialize_with_interner<S: Serializer>(
&self,
serializer: S,
_: &Interner
) -> Result<S::Ok, S::Error>
[src]
fn serialize_with_interner<S: Serializer>(
&self,
serializer: S,
_: &Interner
) -> Result<S::Ok, S::Error>
Serializes this value with help from an [Interner
] that writes [Symbol
]s as strings. Read more
fn with_interner<'si>(
&self,
interner: &'si Interner
) -> WithInterner<'si, &Self>
[src]
fn with_interner<'si>(
&self,
interner: &'si Interner
) -> WithInterner<'si, &Self>
Adorns this object with a string interner. Read more