fn parse_els(&mut self, num_el: usize) -> OffParseResult<SubelementList> {
        let mut els_subs = SubelementList::with_capacity(num_el);

        // Adds every d-element to the element list.
        for _ in 0..num_el {
            let el_sub_num = self.iter.parse_next()?;
            let mut subs = Subelements::with_capacity(el_sub_num);

            // Reads all sub-elements of the d-element.
            for _ in 0..el_sub_num {
                subs.push(self.iter.parse_next()?);
            }

            els_subs.push(subs);
        }

        Ok(els_subs)
    }
/// Parses the next set of d-elements from the OFF file.
Parses the next set of d-elements from the OFF file.
Parses the next set of d - elements from the OFF file .
fn parse_els(&mut self, num_el: usize) -> OffParseResult<SubelementList> {
        let mut els_subs = SubelementList::with_capacity(num_el);
        // Adds every d-element to the element list.
        for _ in 0..num_el {
            let el_sub_num = self.iter.parse_next()?;
            let mut subs = Subelements::with_capacity(el_sub_num);
            // Reads all sub-elements of the d-element.
            for _ in 0..el_sub_num {
                subs.push(self.iter.parse_next()?);
            }
            els_subs.push(subs);
        }
        Ok(els_subs)
    }
fn parse_els ( & mut self , num_el : usize ) -> OffParseResult < SubelementList > { let mut els_subs = SubelementList :: with_capacity ( num_el ) ; // Adds every d-element to the element list. for _ in 0 .. num_el { let el_sub_num = self . iter . parse_next ( ) ? ; let mut subs = Subelements :: with_capacity ( el_sub_num ) ; // Reads all sub-elements of the d-element. for _ in 0 .. el_sub_num { subs . push ( self . iter . parse_next ( ) ? ) ; } els_subs . push ( subs ) ; } Ok ( els_subs ) }
Parses the next set of d-elements from the OFF file.
Parses the next set of d - elements from the OFF file .
&mut self
num_el
usize
&mut self
num_el
usize