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

The value of the bound.

The type of the bound.

Methods

impl<S, T> RangeBound<S, T> where
    S: BoundSided,
    T: PartialOrd
[src]

Constructs a new range bound

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
[src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S, T> Eq for RangeBound<S, T> where
    S: BoundSided,
    T: Eq
[src]

impl<S, T> PartialOrd for RangeBound<S, T> where
    S: BoundSided,
    T: PartialOrd
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This 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]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares 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> Sync for RangeBound<S, T> where
    S: Sync,
    T: Sync