Enum facti_lib::version::VersionReq
source · pub enum VersionReq {
Latest,
Spec(VersionSpec),
}Variants§
Latest
Spec(VersionSpec)
Implementations§
source§impl VersionReq
impl VersionReq
pub fn parse(s: &str) -> Result<Self, VersionParseError>
Trait Implementations§
source§impl Clone for VersionReq
impl Clone for VersionReq
source§fn clone(&self) -> VersionReq
fn clone(&self) -> VersionReq
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 VersionReq
impl Debug for VersionReq
source§impl Display for VersionReq
impl Display for VersionReq
source§impl From<VersionReq> for VersionReq
impl From<VersionReq> for VersionReq
source§fn from(value: VersionReq) -> Self
fn from(value: VersionReq) -> Self
Converts to this type from the input type.
source§impl FromStr for VersionReq
impl FromStr for VersionReq
source§impl PartialEq<VersionReq> for VersionReq
impl PartialEq<VersionReq> for VersionReq
source§fn eq(&self, other: &VersionReq) -> bool
fn eq(&self, other: &VersionReq) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<VersionReq> for VersionReq
impl TryFrom<VersionReq> for VersionReq
§type Error = VersionParseError
type Error = VersionParseError
The type returned in the event of a conversion error.
impl Copy for VersionReq
impl Eq for VersionReq
impl StructuralEq for VersionReq
impl StructuralPartialEq for VersionReq
Auto Trait Implementations§
impl RefUnwindSafe for VersionReq
impl Send for VersionReq
impl Sync for VersionReq
impl Unpin for VersionReq
impl UnwindSafe for VersionReq
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