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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

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

source§

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

source§

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