pub fn merge(
        &mut self,
        key: SliceData,
        merger: impl FnOnce(X, X) -> Result<X>
    ) -> Result<bool> {
        if let Some(builder) = internal_merge(&self.data, key, merger)? {
            self.data = builder.into_cell()?.into();
            Ok(true)
        } else {
            Ok(false)
        }
    }
/// Merge 2 items in fork by calling merger function, returns false if fork was not found
Merge 2 items in fork by calling merger function, returns false if fork was not found
Merge 2 items in fork by calling merger function returns false if fork was not found
pub fn merge(
        &mut self,
        key: SliceData,
        merger: impl FnOnce(X, X) -> Result<X>
    ) -> Result<bool> {
        if let Some(builder) = internal_merge(&self.data, key, merger)? {
            self.data = builder.into_cell()?.into();
            Ok(true)
        } else {
            Ok(false)
        }
    }
pub fn merge ( & mut self , key : SliceData , merger : impl FnOnce ( X , X ) -> Result < X > ) -> Result < bool > { if let Some ( builder ) = internal_merge ( & self . data , key , merger ) ? { self . data = builder . into_cell ( ) ? . into ( ) ; Ok ( true ) } else { Ok ( false ) } }
Merge 2 items in fork by calling merger function, returns false if fork was not found
Merge 2 items in fork by calling merger function returns false if fork was not found
&mut self
key
SliceData
merger
impl FnOnce(X, X) -> Result<X>
&mut self
key
SliceData
merger
impl FnOnce(X, X) -> Result<X>