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