pub enum RoundingOp {
Floor,
Ceil,
Round,
Trunc,
}Variants§
Implementations§
Source§impl RoundingOp
impl RoundingOp
pub fn code(self) -> u8
pub fn name(self) -> &'static str
pub fn alt1(self) -> RoundingOp
pub fn alt2(self) -> RoundingOp
Sourcepub fn differs_for(self, other: RoundingOp) -> &'static str
pub fn differs_for(self, other: RoundingOp) -> &'static str
Concrete input description distinguishing self from other.
Sourcepub fn differs_for_non_negative(self, other: RoundingOp) -> &'static str
pub fn differs_for_non_negative(self, other: RoundingOp) -> &'static str
Concrete input description distinguishing self from other when the receiver
is statically non-negative (omits negative examples).
Trait Implementations§
Source§impl Clone for RoundingOp
impl Clone for RoundingOp
impl Copy for RoundingOp
Source§impl Debug for RoundingOp
impl Debug for RoundingOp
impl Eq for RoundingOp
Source§impl PartialEq for RoundingOp
impl PartialEq for RoundingOp
Source§impl Serialize for RoundingOp
impl Serialize for RoundingOp
impl StructuralPartialEq for RoundingOp
Auto Trait Implementations§
impl Forget for RoundingOp
impl Freeze for RoundingOp
impl Move for RoundingOp
impl RefUnwindSafe for RoundingOp
impl Send for RoundingOp
impl Sync for RoundingOp
impl Unpin for RoundingOp
impl UnsafeUnpin for RoundingOp
impl UnwindSafe for RoundingOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.