pub struct VersionSpec {
pub op: Op,
pub version: Version,
}Expand description
Specifies a specific require version, or a version matching a given predicate.
Fields§
§op: OpThe predicate/operator to use when matching versions.
version: VersionThe version to use as baseline.
Implementations§
Source§impl VersionSpec
impl VersionSpec
Trait Implementations§
Source§impl Clone for VersionSpec
impl Clone for VersionSpec
Source§fn clone(&self) -> VersionSpec
fn clone(&self) -> VersionSpec
Returns a duplicate 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 VersionSpec
impl Debug for VersionSpec
Source§impl Display for VersionSpec
impl Display for VersionSpec
Source§impl From<FactorioVersion> for VersionSpec
impl From<FactorioVersion> for VersionSpec
Source§fn from(value: FactorioVersion) -> Self
fn from(value: FactorioVersion) -> Self
Converts to this type from the input type.
Source§impl From<VersionSpec> for VersionReq
impl From<VersionSpec> for VersionReq
Source§fn from(value: VersionSpec) -> Self
fn from(value: VersionSpec) -> Self
Converts to this type from the input type.
Source§impl FromStr for VersionSpec
impl FromStr for VersionSpec
Source§impl PartialEq for VersionSpec
impl PartialEq for VersionSpec
Source§impl TryFrom<VersionReq> for VersionSpec
impl TryFrom<VersionReq> for VersionSpec
Source§type Error = ParseVersionSpecError
type Error = ParseVersionSpecError
The type returned in the event of a conversion error.
impl Copy for VersionSpec
impl Eq for VersionSpec
impl StructuralPartialEq for VersionSpec
Auto Trait Implementations§
impl Freeze for VersionSpec
impl RefUnwindSafe for VersionSpec
impl Send for VersionSpec
impl Sync for VersionSpec
impl Unpin for VersionSpec
impl UnwindSafe for VersionSpec
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