pub struct MatchAllConstraint { /* private fields */ }Expand description
A constraint that matches all versions (wildcard *).
Implementations§
Trait Implementations§
Source§impl Clone for MatchAllConstraint
impl Clone for MatchAllConstraint
Source§fn clone(&self) -> MatchAllConstraint
fn clone(&self) -> MatchAllConstraint
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 MatchAllConstraint
impl Constraint for MatchAllConstraint
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_all(&self) -> bool
fn is_match_all(&self) -> bool
Check if this is a
MatchAllConstraint.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_none(&self) -> bool
fn is_match_none(&self) -> bool
Check if this is a
MatchNoneConstraint.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 MatchAllConstraint
impl Debug for MatchAllConstraint
Source§impl Default for MatchAllConstraint
impl Default for MatchAllConstraint
Source§fn default() -> MatchAllConstraint
fn default() -> MatchAllConstraint
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MatchAllConstraint
impl RefUnwindSafe for MatchAllConstraint
impl Send for MatchAllConstraint
impl Sync for MatchAllConstraint
impl Unpin for MatchAllConstraint
impl UnwindSafe for MatchAllConstraint
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