pub enum ConstraintBound {
Integer(i64),
Float(f64),
}Expand description
A numeric bound used in @range constraints.
Variants§
Trait Implementations§
Source§impl Clone for ConstraintBound
impl Clone for ConstraintBound
Source§fn clone(&self) -> ConstraintBound
fn clone(&self) -> ConstraintBound
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 ConstraintBound
impl Debug for ConstraintBound
Source§impl<'de> Deserialize<'de> for ConstraintBound
impl<'de> Deserialize<'de> for ConstraintBound
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConstraintBound
impl PartialEq for ConstraintBound
Source§fn eq(&self, other: &ConstraintBound) -> bool
fn eq(&self, other: &ConstraintBound) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConstraintBound
impl Serialize for ConstraintBound
impl StructuralPartialEq for ConstraintBound
Auto Trait Implementations§
impl Freeze for ConstraintBound
impl RefUnwindSafe for ConstraintBound
impl Send for ConstraintBound
impl Sync for ConstraintBound
impl Unpin for ConstraintBound
impl UnsafeUnpin for ConstraintBound
impl UnwindSafe for ConstraintBound
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