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