pub struct MatchNoneConstraint { /* private fields */ }Expand description
A constraint that matches no versions (empty/impossible constraint).
Implementations§
Trait Implementations§
Source§impl Clone for MatchNoneConstraint
impl Clone for MatchNoneConstraint
Source§fn clone(&self) -> MatchNoneConstraint
fn clone(&self) -> MatchNoneConstraint
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 Constraint for MatchNoneConstraint
impl Constraint for MatchNoneConstraint
Source§fn matches(&self, _other: &dyn Constraint) -> bool
fn matches(&self, _other: &dyn Constraint) -> bool
Check if this constraint matches/intersects with another.
Source§fn lower_bound(&self) -> Bound
fn lower_bound(&self) -> Bound
Get the lower bound of this constraint.
Source§fn upper_bound(&self) -> Bound
fn upper_bound(&self) -> Bound
Get the upper bound of this constraint.
Source§fn is_match_none(&self) -> bool
fn is_match_none(&self) -> bool
Check if this is a
MatchNoneConstraint.Source§fn set_pretty_string(&mut self, pretty: String)
fn set_pretty_string(&mut self, pretty: String)
Set a custom pretty string (for preserving user input).
Source§fn pretty_string(&self) -> String
fn pretty_string(&self) -> String
Get a human-readable representation.
Source§fn is_match_all(&self) -> bool
fn is_match_all(&self) -> bool
Check if this is a
MatchAllConstraint.Source§fn as_single(&self) -> Option<&SingleConstraint>
fn as_single(&self) -> Option<&SingleConstraint>
Try to downcast to
SingleConstraint.Source§fn as_multi(&self) -> Option<&MultiConstraint>
fn as_multi(&self) -> Option<&MultiConstraint>
Try to downcast to
MultiConstraint.Source§impl Debug for MatchNoneConstraint
impl Debug for MatchNoneConstraint
Source§impl Default for MatchNoneConstraint
impl Default for MatchNoneConstraint
Source§fn default() -> MatchNoneConstraint
fn default() -> MatchNoneConstraint
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MatchNoneConstraint
impl RefUnwindSafe for MatchNoneConstraint
impl Send for MatchNoneConstraint
impl Sync for MatchNoneConstraint
impl Unpin for MatchNoneConstraint
impl UnwindSafe for MatchNoneConstraint
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