pub enum ComparatorOp {
Exact,
Greater,
GreaterEq,
Less,
LessEq,
Tilde,
Caret,
}Expand description
ComparatorOp is just a re-implementation of semver::Op.
This could be removed, and a Strategy for semver::Op probably could be
defined with some kind of reasonable fmt::Display ().
Variants§
Trait Implementations§
Source§impl Arbitrary for ComparatorOp
impl Arbitrary for ComparatorOp
Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = TupleUnion<((u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>), (u32, Arc<fn() -> ComparatorOp>))>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Clone for ComparatorOp
impl Clone for ComparatorOp
Source§fn clone(&self) -> ComparatorOp
fn clone(&self) -> ComparatorOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComparatorOp
impl Debug for ComparatorOp
Auto Trait Implementations§
impl Freeze for ComparatorOp
impl RefUnwindSafe for ComparatorOp
impl Send for ComparatorOp
impl Sync for ComparatorOp
impl Unpin for ComparatorOp
impl UnsafeUnpin for ComparatorOp
impl UnwindSafe for ComparatorOp
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