Skip to main content

IndexScanRangeBoundsTerminator

Trait IndexScanRangeBoundsTerminator 

Source
pub trait IndexScanRangeBoundsTerminator {
    type Arg;

    const POINT: bool = false;

    // Required method
    fn bounds(&self) -> TermBound<&Self::Arg>;

    // Provided method
    fn point(&self) -> &Self::Arg { ... }
}

Provided Associated Constants§

Source

const POINT: bool = false

Whether this bound terminator is a point.

Required Associated Types§

Source

type Arg

The key type of the bound.

Required Methods§

Source

fn bounds(&self) -> TermBound<&Self::Arg>

Returns the terminal bound for the range scan. This bound can either be a point, as in most cases, or an actual bound.

Provided Methods§

Source

fn point(&self) -> &Self::Arg

Returns the point bound, assuming POINT == true.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: FilterableValue> IndexScanRangeBoundsTerminator for (Bound<T>, Bound<T>)

Source§

type Arg = T

Source§

fn bounds(&self) -> TermBound<&T>

Source§

impl<T: FilterableValue> IndexScanRangeBoundsTerminator for Range<T>

Source§

type Arg = T

Source§

fn bounds(&self) -> TermBound<&T>

Source§

impl<T: FilterableValue> IndexScanRangeBoundsTerminator for RangeFrom<T>

Source§

type Arg = T

Source§

fn bounds(&self) -> TermBound<&T>

Source§

impl<T: FilterableValue> IndexScanRangeBoundsTerminator for RangeInclusive<T>

Source§

type Arg = T

Source§

fn bounds(&self) -> TermBound<&T>

Source§

impl<T: FilterableValue> IndexScanRangeBoundsTerminator for RangeTo<T>

Source§

type Arg = T

Source§

fn bounds(&self) -> TermBound<&T>

Source§

impl<T: FilterableValue> IndexScanRangeBoundsTerminator for RangeToInclusive<T>

Source§

type Arg = T

Source§

fn bounds(&self) -> TermBound<&T>

Implementors§

Source§

impl<Col, Arg: FilterableValue<Column = Col>> IndexScanRangeBoundsTerminator for Arg

Source§

const POINT: bool = true

Source§

type Arg = Arg