pub struct IntegerRange {
pub min: Option<i32>,
pub max: Option<i32>,
}Fields§
§min: Option<i32>§max: Option<i32>Implementations§
Source§impl IntegerRange
impl IntegerRange
pub fn new(min: Option<i32>, max: Option<i32>) -> IntegerRange
pub fn new_min(min: i32) -> IntegerRange
pub fn new_max(max: i32) -> IntegerRange
pub fn new_min_max(min: i32, max: i32) -> IntegerRange
pub fn new_single(value: i32) -> IntegerRange
Trait Implementations§
Source§impl Clone for IntegerRange
impl Clone for IntegerRange
Source§fn clone(&self) -> IntegerRange
fn clone(&self) -> IntegerRange
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 Debug for IntegerRange
impl Debug for IntegerRange
Source§impl Display for IntegerRange
impl Display for IntegerRange
Source§impl HasMacro for IntegerRange
impl HasMacro for IntegerRange
Source§impl Hash for IntegerRange
impl Hash for IntegerRange
Source§impl PartialEq for IntegerRange
impl PartialEq for IntegerRange
impl Eq for IntegerRange
impl StructuralPartialEq for IntegerRange
Auto Trait Implementations§
impl Freeze for IntegerRange
impl RefUnwindSafe for IntegerRange
impl Send for IntegerRange
impl Sync for IntegerRange
impl Unpin for IntegerRange
impl UnwindSafe for IntegerRange
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more