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

The value of the bound.

type_

The type of the bound.

Methods

impl<S, T> RangeBound<S, T> where S: BoundSided, T: PartialOrd

fn new(value: T, type_: BoundType) -> RangeBound<S, T>

Constructs a new range bound

fn in_bounds(&self, value: &T) -> bool

Determines 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

impl<S, T> Clone for RangeBound<S, T> where S: BoundSided, T: Clone

fn clone(&self) -> RangeBound<S, T>

fn clone_from(&mut self, source: &Self)

impl<S, T> Debug for RangeBound<S, T> where S: BoundSided, T: Debug

fn fmt(&self, fmt: &mut Formatter) -> Result

impl<S, T> Display for RangeBound<S, T> where S: BoundSided, T: Display

fn fmt(&self, fmt: &mut Formatter) -> Result

impl<S, T> PartialEq for RangeBound<S, T> where S: BoundSided, T: PartialEq

fn eq(&self, other: &RangeBound<S, T>) -> bool

fn ne(&self, other: &RangeBound<S, T>) -> bool

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

fn partial_cmp(&self, other: &RangeBound<S, T>) -> Option<Ordering>

fn lt(&self, other: &Rhs) -> bool

fn le(&self, other: &Rhs) -> bool

fn gt(&self, other: &Rhs) -> bool

fn ge(&self, other: &Rhs) -> bool

impl<S, T> Ord for RangeBound<S, T> where S: BoundSided, T: Ord

fn cmp(&self, other: &RangeBound<S, T>) -> Ordering