pub struct CustomOperator<F> { /* private fields */ }
Expand description
Custom operator that allows user-defined merge logic
Implementations§
Source§impl<F> CustomOperator<F>
impl<F> CustomOperator<F>
Trait Implementations§
Source§impl<F> Clone for CustomOperator<F>where
F: Clone,
impl<F> Clone for CustomOperator<F>where
F: Clone,
Source§impl<F> MergeOperator<i64> for CustomOperator<F>
impl<F> MergeOperator<i64> for CustomOperator<F>
Source§fn merge(&self, left: i64, right: i64) -> MapletResult<i64>
fn merge(&self, left: i64, right: i64) -> MapletResult<i64>
Merge two values using the operator ⊕
Source§fn is_associative(&self) -> bool
fn is_associative(&self) -> bool
Check if the operator is associative
Source§fn is_commutative(&self) -> bool
fn is_commutative(&self) -> bool
Check if the operator is commutative
Auto Trait Implementations§
impl<F> Freeze for CustomOperator<F>where
F: Freeze,
impl<F> RefUnwindSafe for CustomOperator<F>where
F: RefUnwindSafe,
impl<F> Send for CustomOperator<F>where
F: Send,
impl<F> Sync for CustomOperator<F>where
F: Sync,
impl<F> Unpin for CustomOperator<F>where
F: Unpin,
impl<F> UnwindSafe for CustomOperator<F>where
F: UnwindSafe,
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