Struct postgres_range::RangeBound [−][src]
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.
Implementations
impl<S, T> RangeBound<S, T> where
S: BoundSided,
T: PartialOrd,
[src]
S: BoundSided,
T: PartialOrd,
pub fn new(value: T, type_: BoundType) -> RangeBound<S, T>
[src]
Constructs a new range bound
pub fn in_bounds(&self, value: &T) -> bool
[src]
Determines if a value lies within the range specified by this bound.
Trait Implementations
impl<S, T> Clone for RangeBound<S, T> where
S: BoundSided,
T: Clone,
[src]
S: BoundSided,
T: Clone,
fn clone(&self) -> RangeBound<S, T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S, T> Copy for RangeBound<S, T> where
S: BoundSided,
T: Copy,
[src]
S: BoundSided,
T: Copy,
impl<S, T> Debug for RangeBound<S, T> where
S: BoundSided,
T: Debug,
[src]
S: BoundSided,
T: Debug,
impl<S, T> Display for RangeBound<S, T> where
S: BoundSided,
T: Display,
[src]
S: BoundSided,
T: Display,
impl<S, T> Eq for RangeBound<S, T> where
S: BoundSided,
T: Eq,
[src]
S: BoundSided,
T: Eq,
impl<S, T> Ord for RangeBound<S, T> where
S: BoundSided,
T: Ord,
[src]
S: BoundSided,
T: Ord,
fn cmp(&self, other: &RangeBound<S, T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<S, T> PartialEq<RangeBound<S, T>> for RangeBound<S, T> where
S: BoundSided,
T: PartialEq,
[src]
S: BoundSided,
T: PartialEq,
fn eq(&self, other: &RangeBound<S, T>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<S, T> PartialOrd<RangeBound<S, T>> for RangeBound<S, T> where
S: BoundSided,
T: PartialOrd,
[src]
S: BoundSided,
T: PartialOrd,
fn partial_cmp(&self, other: &RangeBound<S, T>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
Auto Trait Implementations
impl<S, T> RefUnwindSafe for RangeBound<S, T> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for RangeBound<S, T> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<S, T> Sync for RangeBound<S, T> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<S, T> Unpin for RangeBound<S, T> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<S, T> UnwindSafe for RangeBound<S, T> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,