Enum cid::Version [−][src]
pub enum Version { V0, V1, }
The version of the CID.
Variants
CID version 0.
CID version 1.
Implementations
impl Version
[src]
impl Version
[src]Trait Implementations
impl PartialOrd<Version> for Version
[src]
impl PartialOrd<Version> for Version
[src]fn partial_cmp(&self, other: &Version) -> Option<Ordering>
[src][−]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl TryFrom<u64> for Version
[src]
impl TryFrom<u64> for Version
[src]Convert a number to the matching version, or Error
if no valid version is matching.