pub trait IntoPrefixRange<'a, TOwned>: PartialEqwhere
    TOwned: Borrow<Self> + PartialEq<Self>,{
    // Required method
    fn to_prefix_range(&'a self) -> RangeRef<'a, TOwned, Self>;
}
Expand description

A type that can be used as a prefix range in range-based queries.

Required Methods§

source

fn to_prefix_range(&'a self) -> RangeRef<'a, TOwned, Self>

Returns the value as a prefix-range, which will match all values that start with self.

Implementations on Foreign Types§

source§

impl<'a> IntoPrefixRange<'a, String> for String

source§

fn to_prefix_range(&'a self) -> RangeRef<'a, Self>

source§

impl<'a, 'k> IntoPrefixRange<'a, Cow<'k, [u8]>> for Cow<'k, [u8]>

source§

fn to_prefix_range(&'a self) -> RangeRef<'a, Self>

source§

impl<'k> IntoPrefixRange<'k, Vec<u8, Global>> for Vec<u8>

source§

fn to_prefix_range(&'k self) -> RangeRef<'k, Self>

source§

impl<'a> IntoPrefixRange<'a, Bytes> for Bytes

source§

fn to_prefix_range(&'a self) -> RangeRef<'a, Self>

source§

impl<'a, 'k> IntoPrefixRange<'a, ArcBytes<'k>> for ArcBytes<'k>

source§

fn to_prefix_range(&'a self) -> RangeRef<'a, Self>

source§

impl<'a, 'k> IntoPrefixRange<'a, CowBytes<'k>> for CowBytes<'k>

source§

fn to_prefix_range(&'a self) -> RangeRef<'_, Self>

source§

impl<'a> IntoPrefixRange<'a, String> for str

source§

fn to_prefix_range(&'a self) -> RangeRef<'a, String, Self>

Implementors§