pub enum InputDefinitionRangeInteger {
Max(isize),
MinMax {
maybe_max: Option<isize>,
maybe_min: Option<isize>,
},
}Variants§
Implementations§
source§impl InputDefinitionRangeInteger
impl InputDefinitionRangeInteger
pub fn new_with_max<T: Into<isize>>(max: T) -> Self
pub fn new_with_min<T: Into<isize>>(min: T) -> Self
pub fn new<T1: Into<isize>, T2: Into<isize>>(min: T1, max: T2) -> Self
pub fn maybe_with_max<T: Into<isize>>(self, maybe_max: Option<T>) -> Self
pub fn with_max<T: Into<isize>>(self, max: T) -> Self
pub fn maybe_set_max<T: Into<isize>>(&mut self, maybe_max: Option<T>)
pub fn set_max<T: Into<isize>>(&mut self, max: T)
pub fn maybe_with_min<T: Into<isize>>(self, maybe_min: Option<T>) -> Self
pub fn with_min<T: Into<isize>>(self, min: T) -> Self
pub fn maybe_set_min<T: Into<isize>>(&mut self, maybe_min: Option<T>)
pub fn set_min<T: Into<isize>>(&mut self, min: T)
pub fn maybe_min(&self) -> Option<isize>
pub fn maybe_min_mut(&mut self) -> &mut Option<isize>
pub fn maybe_max(&self) -> Option<isize>
pub fn maybe_max_mut(&mut self) -> &mut Option<isize>
Trait Implementations§
source§impl Clone for InputDefinitionRangeInteger
impl Clone for InputDefinitionRangeInteger
source§fn clone(&self) -> InputDefinitionRangeInteger
fn clone(&self) -> InputDefinitionRangeInteger
Returns a copy 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 Debug for InputDefinitionRangeInteger
impl Debug for InputDefinitionRangeInteger
source§impl<'de> Deserialize<'de> for InputDefinitionRangeInteger
impl<'de> Deserialize<'de> for InputDefinitionRangeInteger
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 From<i16> for InputDefinitionRangeInteger
impl From<i16> for InputDefinitionRangeInteger
source§impl From<i32> for InputDefinitionRangeInteger
impl From<i32> for InputDefinitionRangeInteger
source§impl From<i8> for InputDefinitionRangeInteger
impl From<i8> for InputDefinitionRangeInteger
source§impl From<isize> for InputDefinitionRangeInteger
impl From<isize> for InputDefinitionRangeInteger
source§impl From<u16> for InputDefinitionRangeInteger
impl From<u16> for InputDefinitionRangeInteger
source§impl From<u32> for InputDefinitionRangeInteger
impl From<u32> for InputDefinitionRangeInteger
source§impl From<u8> for InputDefinitionRangeInteger
impl From<u8> for InputDefinitionRangeInteger
source§impl PartialEq<InputDefinitionRangeInteger> for InputDefinitionRangeInteger
impl PartialEq<InputDefinitionRangeInteger> for InputDefinitionRangeInteger
source§fn eq(&self, other: &InputDefinitionRangeInteger) -> bool
fn eq(&self, other: &InputDefinitionRangeInteger) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for InputDefinitionRangeInteger
impl StructuralPartialEq for InputDefinitionRangeInteger
Auto Trait Implementations§
impl RefUnwindSafe for InputDefinitionRangeInteger
impl Send for InputDefinitionRangeInteger
impl Sync for InputDefinitionRangeInteger
impl Unpin for InputDefinitionRangeInteger
impl UnwindSafe for InputDefinitionRangeInteger
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