Struct rocksdb::SliceTransform
source · pub struct SliceTransform {
pub inner: *mut rocksdb_slicetransform_t,
}
Expand description
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§
source§impl SliceTransform
impl SliceTransform
pub fn create( name: impl CStrLike, transform_fn: fn(_: &'_ [u8]) -> &'_ [u8], in_domain_fn: Option<fn(_: &[u8]) -> bool> ) -> SliceTransform
pub fn create_fixed_prefix(len: size_t) -> SliceTransform
pub fn create_noop() -> SliceTransform
Auto Trait Implementations§
impl RefUnwindSafe for SliceTransform
impl !Send for SliceTransform
impl !Sync for SliceTransform
impl Unpin for SliceTransform
impl UnwindSafe for SliceTransform
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more