Struct rocksdb::SliceTransform[][src]

pub struct SliceTransform {
    pub inner: *mut rocksdb_slicetransform_t,
}

A SliceTransform is a generic pluggable way of transforming one string to another. Its primary use-case is in configuring rocksdb to store prefix blooms by setting prefix_extractor in ColumnFamilyOptions.

Fields

inner: *mut rocksdb_slicetransform_t

Implementations

impl SliceTransform[src]

pub fn create(
    name: &str,
    transform_fn: fn(_: &'_ [u8]) -> &'_ [u8],
    in_domain_fn: Option<fn(_: &[u8]) -> bool>
) -> SliceTransform
[src]

pub fn create_fixed_prefix(len: size_t) -> SliceTransform[src]

pub fn create_noop() -> SliceTransform[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.