/// Attempt to resolve T to Node by repeatedly calling resolve_type_once until all types have
/// been resolved or the configured depth_limit has been reached.
Attempt to resolve T to Node by repeatedly calling resolve_type_once until all types have
been resolved or the configured depth_limit has been reached.
Attempt to resolve T to Node by repeatedly calling resolve_type_once until all types have been resolved or the configured depth_limit has been reached .
pub fn resolve_type<'de, T>(&mut self) -> Result<Node>
    where
        T: Deserialize<'de>,
    {
        let mut depth = 0;
        loop {
            if self.depth_limit > 0 && depth > self.depth_limit {
                return Err(Error::OverDepthLimit(self.depth_limit));
            }
            let node = self.resolve_type_once::<T>()?;
            if let Node::TypeName(name) = &node {
                if self.incomplete_enums.contains(name) {
                    self.incomplete_enums.remove(name);
                    continue;
                }
                if !self.incomplete_enums.is_empty() {
                    depth += 1;
                    continue;
                }
            }
            return Ok(node);
        }
    }
pub fn resolve_type < ' de , T > ( & mut self ) -> Result < Node > where T : Deserialize < ' de > , { let mut depth = 0 ; loop { if self . depth_limit > 0 && depth > self . depth_limit { return Err ( Error :: OverDepthLimit ( self . depth_limit ) ) ; } let node = self . resolve_type_once :: < T > ( ) ? ; if let Node :: TypeName ( name ) = & node { if self . incomplete_enums . contains ( name ) { self . incomplete_enums . remove ( name ) ; continue ; } if ! self . incomplete_enums . is_empty ( ) { depth += 1 ; continue ; } } return Ok ( node ) ; } }
Attempt to resolve T to Node by repeatedly calling resolve_type_once until all types have
been resolved or the configured depth_limit has been reached.
Attempt to resolve T to Node by repeatedly calling resolve_type_once until all types have been resolved or the configured depth_limit has been reached .
&mut self