pub trait IntoPrefixRange<'a, TOwned>: PartialEq<Self>where
    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§

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§

§

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

§

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

§

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

§

fn to_prefix_range(&'a self) -> RangeRef<'a, Cow<'k, [u8]>, Cow<'k, [u8]>>

§

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

§

fn to_prefix_range(&'k self) -> RangeRef<'k, Vec<u8, Global>, Vec<u8, Global>>

§

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

§

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

Implementors§

§

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

§

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

§

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