/// Garbage collects the provided `procedure` and returns true if it has terminated.
Garbage collects the provided `procedure` and returns true if it has terminated.
Garbage collects the provided ` procedure ` and returns true if it has terminated .
fn check_and_cleanup_procedure(&mut self, procedure: &ProcedureMarker) -> bool {
        let is_terminated = self.procedures.get(procedure).map_or(false, |p| p.is_terminated());
        if is_terminated {
            self.procedures.remove(procedure);
            // Special case of the SLCI Procedure - once this is complete, the channel is
            // considered initialized.
            if *procedure == ProcedureMarker::SlcInitialization {
                self.set_initialized();
            }
        }
        is_terminated
    }
fn check_and_cleanup_procedure ( & mut self , procedure : & ProcedureMarker ) -> bool { let is_terminated = self . procedures . get ( procedure ) . map_or ( false , | p | p . is_terminated ( ) ) ; if is_terminated { self . procedures . remove ( procedure ) ; // Special case of the SLCI Procedure - once this is complete, the channel is // considered initialized. if * procedure == ProcedureMarker :: SlcInitialization { self . set_initialized ( ) ; } } is_terminated }
Garbage collects the provided `procedure` and returns true if it has terminated.
Garbage collects the provided ` procedure ` and returns true if it has terminated .
&mut self
procedure
&ProcedureMarker