Struct rocksdb::SliceTransform [−][src]
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]
name: &str,
transform_fn: fn(_: &'_ [u8]) -> &'_ [u8],
in_domain_fn: Option<fn(_: &[u8]) -> bool>
) -> SliceTransform
pub fn create_fixed_prefix(len: size_t) -> SliceTransform
[src]
pub fn create_noop() -> SliceTransform
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,