Struct range_check::Bounds
[−]
[src]
pub struct Bounds<T> { pub lower: Option<T>, pub upper: Option<T>, }
The two bounds destructured from a Range value.
Fields
lower: Option<T>
The lower bound. Range
and RangeFrom
have one of these.
upper: Option<T>
The upper bound. Range
and RangeTo
have one of these.
Trait Implementations
impl<T: PartialEq> PartialEq for Bounds<T>
[src]
fn eq(&self, __arg_0: &Bounds<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Bounds<T>) -> bool
This method tests for !=
.
impl<T: Debug> Debug for Bounds<T>
[src]
impl<T: Clone> Clone for Bounds<T>
[src]
fn clone(&self) -> Bounds<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more