Enum cargo::util::OptVersionReq
source · [−]pub enum OptVersionReq {
Any,
Req(VersionReq),
}
Variants
Any
Req(VersionReq)
Implementations
sourceimpl OptVersionReq
impl OptVersionReq
Trait Implementations
sourceimpl Clone for OptVersionReq
impl Clone for OptVersionReq
sourcefn clone(&self) -> OptVersionReq
fn clone(&self) -> OptVersionReq
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OptVersionReq
impl Debug for OptVersionReq
sourceimpl Display for OptVersionReq
impl Display for OptVersionReq
sourceimpl From<VersionReq> for OptVersionReq
impl From<VersionReq> for OptVersionReq
sourcefn from(req: VersionReq) -> Self
fn from(req: VersionReq) -> Self
Performs the conversion.
sourceimpl Hash for OptVersionReq
impl Hash for OptVersionReq
sourceimpl PartialEq<OptVersionReq> for OptVersionReq
impl PartialEq<OptVersionReq> for OptVersionReq
sourcefn eq(&self, other: &OptVersionReq) -> bool
fn eq(&self, other: &OptVersionReq) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OptVersionReq) -> bool
fn ne(&self, other: &OptVersionReq) -> bool
This method tests for !=
.
impl Eq for OptVersionReq
impl StructuralEq for OptVersionReq
impl StructuralPartialEq for OptVersionReq
Auto Trait Implementations
impl RefUnwindSafe for OptVersionReq
impl Send for OptVersionReq
impl Sync for OptVersionReq
impl Unpin for OptVersionReq
impl UnwindSafe for OptVersionReq
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more