pub fn split(
        &mut self,
        key: SliceData,
        splitter: impl FnOnce(X) -> Result<(X, X)>
    ) -> Result<bool> {
        if let Some(builder) = internal_split(&self.data, key, splitter)? {
            self.data = builder.into_cell()?.into();
            Ok(true)
        } else {
            Ok(false)
        }
    }
/// Splits item by calling splitter function, returns false if item was not found
Splits item by calling splitter function, returns false if item was not found
Splits item by calling splitter function returns false if item was not found
pub fn split(
        &mut self,
        key: SliceData,
        splitter: impl FnOnce(X) -> Result<(X, X)>
    ) -> Result<bool> {
        if let Some(builder) = internal_split(&self.data, key, splitter)? {
            self.data = builder.into_cell()?.into();
            Ok(true)
        } else {
            Ok(false)
        }
    }
pub fn split ( & mut self , key : SliceData , splitter : impl FnOnce ( X ) -> Result < ( X , X ) > ) -> Result < bool > { if let Some ( builder ) = internal_split ( & self . data , key , splitter ) ? { self . data = builder . into_cell ( ) ? . into ( ) ; Ok ( true ) } else { Ok ( false ) } }
Splits item by calling splitter function, returns false if item was not found
Splits item by calling splitter function returns false if item was not found
&mut self
key
SliceData
splitter
impl FnOnce(X) -> Result<(X, X)>
&mut self
key
SliceData
splitter
impl FnOnce(X) -> Result<(X, X)>