Struct yearly_version::VersionRequire
source · #[repr(C, align(8))]pub struct VersionRequire {
pub constraints: Vec<VersionConstraint>,
}Fields§
§constraints: Vec<VersionConstraint>1.0; <2.0
Implementations§
source§impl VersionRequire
impl VersionRequire
sourcepub fn parse_advance_version_request(
s: &str,
start: usize
) -> Result<(VersionRequire, &str, usize), VersionError>
pub fn parse_advance_version_request( s: &str, start: usize ) -> Result<(VersionRequire, &str, usize), VersionError>
Parse a version from a string
Trait Implementations§
source§impl Clone for VersionRequire
impl Clone for VersionRequire
source§fn clone(&self) -> VersionRequire
fn clone(&self) -> VersionRequire
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for VersionRequire
impl Debug for VersionRequire
source§impl Default for VersionRequire
impl Default for VersionRequire
source§fn default() -> VersionRequire
fn default() -> VersionRequire
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VersionRequire
impl<'de> Deserialize<'de> for VersionRequire
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for VersionRequire
impl Display for VersionRequire
source§impl FromStr for VersionRequire
impl FromStr for VersionRequire
source§impl Hash for VersionRequire
impl Hash for VersionRequire
source§impl Into<VersionReq> for VersionRequire
impl Into<VersionReq> for VersionRequire
source§fn into(self) -> VersionReq
fn into(self) -> VersionReq
Used to register to a management system based on semantic versioning,
source§impl JsonSchema for VersionRequire
impl JsonSchema for VersionRequire
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl Ord for VersionRequire
impl Ord for VersionRequire
source§fn cmp(&self, other: &VersionRequire) -> Ordering
fn cmp(&self, other: &VersionRequire) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for VersionRequire
impl PartialEq for VersionRequire
source§fn eq(&self, other: &VersionRequire) -> bool
fn eq(&self, other: &VersionRequire) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for VersionRequire
impl PartialOrd for VersionRequire
source§fn partial_cmp(&self, other: &VersionRequire) -> Option<Ordering>
fn partial_cmp(&self, other: &VersionRequire) -> Option<Ordering>
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 moresource§impl Serialize for VersionRequire
impl Serialize for VersionRequire
impl Eq for VersionRequire
impl StructuralPartialEq for VersionRequire
Auto Trait Implementations§
impl Freeze for VersionRequire
impl RefUnwindSafe for VersionRequire
impl Send for VersionRequire
impl Sync for VersionRequire
impl Unpin for VersionRequire
impl UnwindSafe for VersionRequire
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more