[][src]Struct rocks::merge_operator::MergeOperationInput

#[repr(C)]pub struct MergeOperationInput<'a> {
    pub key: &'a &'a [u8],
    pub existing_value: Option<&'a &'a [u8]>,
    // some fields omitted
}

Fields

key: &'a &'a [u8]

The key associated with the merge operation.

existing_value: Option<&'a &'a [u8]>

The existing value of the current key, nullptr means that the value dont exist.

Implementations

impl<'a> MergeOperationInput<'a>[src]

pub fn key(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

The key associated with the merge operation.

pub fn existing_value(&self) -> Option<&[u8]>[src]

The existing value of the current key, nullptr means that the value doesn't exist.

pub fn operands(&self) -> &[&[u8]]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

A list of operands to apply.

pub fn logger(&self) -> &Logger[src]

Logger could be used by client to log any errors that happen during the merge operation.

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.