pub struct Version(_);
Expand description
Represents a version of the HTTP spec.
Implementations§
Trait Implementations§
source§impl From<HttpVersion> for Version
impl From<HttpVersion> for Version
source§fn from(v: HttpVersion) -> Version
fn from(v: HttpVersion) -> Version
Converts to this type from the input type.
source§impl From<Version> for HttpVersion
impl From<Version> for HttpVersion
source§fn from(v: Version) -> HttpVersion
fn from(v: Version) -> HttpVersion
Converts to this type from the input type.
source§impl Ord for Version
impl Ord for Version
source§impl PartialEq<Version> for Version
impl PartialEq<Version> for Version
source§impl PartialOrd<Version> for Version
impl PartialOrd<Version> for Version
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more