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

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§

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

source§

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

source§

fn to_prefix_range(&'a self) -> RangeRef<'a, 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, Cow<'k, [u8]>> for Cow<'k, [u8]>

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<'k> IntoPrefixRange<'k, Vec<u8>> for Vec<u8>

source§

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

Implementors§