Struct postgres_range::RangeBound [−][src]
pub struct RangeBound<S: BoundSided, T> { pub value: T, pub type_: BoundType, // some fields omitted }
Represents a one-sided bound.
The side is determined by the S phantom parameter.
Fields
value: T
The value of the bound.
type_: BoundType
The type of the bound.
Methods
impl<S, T> RangeBound<S, T> where
S: BoundSided,
T: PartialOrd, [src]
impl<S, T> RangeBound<S, T> where
S: BoundSided,
T: PartialOrd, pub fn new(value: T, type_: BoundType) -> RangeBound<S, T>[src]
pub fn new(value: T, type_: BoundType) -> RangeBound<S, T>Constructs a new range bound
pub fn in_bounds(&self, value: &T) -> bool[src]
pub fn in_bounds(&self, value: &T) -> boolDetermines if a value lies within the range specified by this bound.
Trait Implementations
impl<S, T> Copy for RangeBound<S, T> where
S: BoundSided,
T: Copy, [src]
impl<S, T> Copy for RangeBound<S, T> where
S: BoundSided,
T: Copy, impl<S, T> Clone for RangeBound<S, T> where
S: BoundSided,
T: Clone, [src]
impl<S, T> Clone for RangeBound<S, T> where
S: BoundSided,
T: Clone, fn clone(&self) -> RangeBound<S, T>[src]
fn clone(&self) -> RangeBound<S, T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<S, T> Debug for RangeBound<S, T> where
S: BoundSided,
T: Debug, [src]
impl<S, T> Debug for RangeBound<S, T> where
S: BoundSided,
T: Debug, fn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<S, T> Display for RangeBound<S, T> where
S: BoundSided,
T: Display, [src]
impl<S, T> Display for RangeBound<S, T> where
S: BoundSided,
T: Display, fn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<S, T> PartialEq for RangeBound<S, T> where
S: BoundSided,
T: PartialEq, [src]
impl<S, T> PartialEq for RangeBound<S, T> where
S: BoundSided,
T: PartialEq, fn eq(&self, other: &RangeBound<S, T>) -> bool[src]
fn eq(&self, other: &RangeBound<S, T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &RangeBound<S, T>) -> bool[src]
fn ne(&self, other: &RangeBound<S, T>) -> boolThis method tests for !=.
impl<S, T> Eq for RangeBound<S, T> where
S: BoundSided,
T: Eq, [src]
impl<S, T> Eq for RangeBound<S, T> where
S: BoundSided,
T: Eq, impl<S, T> PartialOrd for RangeBound<S, T> where
S: BoundSided,
T: PartialOrd, [src]
impl<S, T> PartialOrd for RangeBound<S, T> where
S: BoundSided,
T: PartialOrd, fn partial_cmp(&self, other: &RangeBound<S, T>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &RangeBound<S, T>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<S, T> Ord for RangeBound<S, T> where
S: BoundSided,
T: Ord, [src]
impl<S, T> Ord for RangeBound<S, T> where
S: BoundSided,
T: Ord, fn cmp(&self, other: &RangeBound<S, T>) -> Ordering[src]
fn cmp(&self, other: &RangeBound<S, T>) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
Auto Trait Implementations
impl<S, T> Send for RangeBound<S, T> where
S: Send,
T: Send,
impl<S, T> Send for RangeBound<S, T> where
S: Send,
T: Send, impl<S, T> Sync for RangeBound<S, T> where
S: Sync,
T: Sync,
impl<S, T> Sync for RangeBound<S, T> where
S: Sync,
T: Sync,