pub fn to_errors<E: Clone>(&mut self, error: E) -> Vec<Error<O, E>> {
        let mut errors = vec![];
        for (i, node) in self.nodes.iter().enumerate() {
            if let NodeState::Pending = node.state.get() {
                let backtrace = self.error_at(i);
                errors.push(Error {
                    error: error.clone(),
                    backtrace,
                });
            }
        }
        let successful_obligations = self.compress(DoCompleted::Yes);
        assert!(successful_obligations.unwrap().is_empty());
        errors
    }
/// Converts all remaining obligations to the given error.
Converts all remaining obligations to the given error.
Converts all remaining obligations to the given error .
pub fn to_errors<E: Clone>(&mut self, error: E) -> Vec<Error<O, E>> {
        let mut errors = vec![];
        for (i, node) in self.nodes.iter().enumerate() {
            if let NodeState::Pending = node.state.get() {
                let backtrace = self.error_at(i);
                errors.push(Error {
                    error: error.clone(),
                    backtrace,
                });
            }
        }
        let successful_obligations = self.compress(DoCompleted::Yes);
        assert!(successful_obligations.unwrap().is_empty());
        errors
    }
pub fn to_errors < E : Clone > ( & mut self , error : E ) -> Vec < Error < O , E > > { let mut errors = vec ! [ ] ; for ( i , node ) in self . nodes . iter ( ) . enumerate ( ) { if let NodeState :: Pending = node . state . get ( ) { let backtrace = self . error_at ( i ) ; errors . push ( Error { error : error . clone ( ) , backtrace , } ) ; } } let successful_obligations = self . compress ( DoCompleted :: Yes ) ; assert ! ( successful_obligations unwrap ( ) is_empty ( ) ) ; errors }
Converts all remaining obligations to the given error.
Converts all remaining obligations to the given error .
&mut self
error
E