pub fn garbage_collect(&mut self, new_stream_positions: BTreeMap<SubnetId, ExpectedIndices>) {
        self.slices = new_stream_positions
            .iter()
            .filter_map(|(subnet_id, stream_position)| {
                self.garbage_collect_impl(subnet_id, stream_position)
            })
            .collect();
        self.stream_positions = new_stream_positions;
    }
/// Garbage collects all messages and signals before the given stream
/// positions. Slices from subnets not present in the provided map are all
/// dropped.
///
/// `new_stream_positions` is retained as `self.stream_positions`.
Garbage collects all messages and signals before the given stream
positions. Slices from subnets not present in the provided map are all
dropped.


Garbage collects all messages and signals before the given stream positions . Slices from subnets not present in the provided map are all dropped .
pub fn garbage_collect(&mut self, new_stream_positions: BTreeMap<SubnetId, ExpectedIndices>) {
        self.slices = new_stream_positions
            .iter()
            .filter_map(|(subnet_id, stream_position)| {
                self.garbage_collect_impl(subnet_id, stream_position)
            })
            .collect();
        self.stream_positions = new_stream_positions;
    }
pub fn garbage_collect ( & mut self , new_stream_positions : BTreeMap < SubnetId , ExpectedIndices > ) { self . slices = new_stream_positions . iter ( ) . filter_map ( | ( subnet_id , stream_position ) | { self . garbage_collect_impl ( subnet_id , stream_position ) } ) . collect ( ) ; self . stream_positions = new_stream_positions ; }
Garbage collects all messages and signals before the given stream
positions.
Garbage collects all messages and signals before the given stream positions .
&mut self
new_stream_positions
BTreeMap<SubnetId, ExpectedIndices>
&mut self
new_stream_positions
BTreeMap<SubnetId, ExpectedIndices>