fn update(self, gc: &Memory) -> Self {
      if let Self::Ceiling { growth_factor, .. } = self {
         Self::Ceiling {
            next_run: gc.allocated_bytes * growth_factor / 256,
            growth_factor,
         }
      } else {
         self
      }
   }
/// Returns an updated version of the strategy after a successful collection.
Returns an updated version of the strategy after a successful collection.
Returns an updated version of the strategy after a successful collection .
fn update(self, gc: &Memory) -> Self {
      if let Self::Ceiling { growth_factor, .. } = self {
         Self::Ceiling {
            next_run: gc.allocated_bytes * growth_factor / 256,
            growth_factor,
         }
      } else {
         self
      }
   }
fn update ( self , gc : & Memory ) -> Self { if let Self :: Ceiling { growth_factor , .. } = self { Self :: Ceiling { next_run : gc . allocated_bytes * growth_factor / 256 , growth_factor , } } else { self } }
Returns an updated version of the strategy after a successful collection.
Returns an updated version of the strategy after a successful collection .
self
gc
&Memory