pub fn to_errors<E: Clone>(&mut self, error: E) -> Vec<Error<O, E>> {
        let mut errors = vec![];
        for index in 0..self.nodes.len() {
            if let NodeState::Pending = self.nodes[index].state.get() {
                let backtrace = self.error_at(index);
                errors.push(Error {
                    error: error.clone(),
                    backtrace,
                });
            }
        }
        let successful_obligations = self.compress();
        assert!(successful_obligations.is_empty());
        errors
    }
/// Convert all remaining obligations to the given error.
///
/// This cannot be done during a snapshot.
Convert all remaining obligations to the given error.
This cannot be done during a snapshot.
Convert all remaining obligations to the given error . This cannot be done during a snapshot .
pub fn to_errors<E: Clone>(&mut self, error: E) -> Vec<Error<O, E>> {
        let mut errors = vec![];
        for index in 0..self.nodes.len() {
            if let NodeState::Pending = self.nodes[index].state.get() {
                let backtrace = self.error_at(index);
                errors.push(Error {
                    error: error.clone(),
                    backtrace,
                });
            }
        }
        let successful_obligations = self.compress();
        assert!(successful_obligations.is_empty());
        errors
    }
pub fn to_errors < E : Clone > ( & mut self , error : E ) -> Vec < Error < O , E > > { let mut errors = vec ! [ ] ; for index in 0 .. self . nodes . len ( ) { if let NodeState :: Pending = self . nodes [ index ] . state . get ( ) { let backtrace = self . error_at ( index ) ; errors . push ( Error { error : error . clone ( ) , backtrace , } ) ; } } let successful_obligations = self . compress ( ) ; assert ! ( successful_obligations is_empty ( ) ) ; errors }
Convert all remaining obligations to the given error.
Convert all remaining obligations to the given error .
&mut self
error
E
&mut self
error
E