pub fn try_from_thrift(elements: &[SchemaElement]) -> Result<ParquetType> {
        let mut index = 0;
        let mut schema_nodes = Vec::new();
        while index < elements.len() {
            let t = from_thrift_helper(elements, index)?;
            index = t.0;
            schema_nodes.push(t.1);
        }
        if schema_nodes.len() != 1 {
            return Err(general_err!(
                "Expected exactly one root node, but found {}",
                schema_nodes.len()
            ));
        }

        Ok(schema_nodes.remove(0))
    }
/// Method to convert from Thrift.
Method to convert from Thrift.
Method to convert from Thrift .
pub fn try_from_thrift(elements: &[SchemaElement]) -> Result<ParquetType> {
        let mut index = 0;
        let mut schema_nodes = Vec::new();
        while index < elements.len() {
            let t = from_thrift_helper(elements, index)?;
            index = t.0;
            schema_nodes.push(t.1);
        }
        if schema_nodes.len() != 1 {
            return Err(general_err!(
                "Expected exactly one root node, but found {}",
                schema_nodes.len()
            ));
        }
        Ok(schema_nodes.remove(0))
    }
pub fn try_from_thrift ( elements : & [ SchemaElement ] ) -> Result < ParquetType > { let mut index = 0 ; let mut schema_nodes = Vec :: new ( ) ; while index < elements . len ( ) { let t = from_thrift_helper ( elements , index ) ? ; index = t . 0 ; schema_nodes . push ( t . 1 ) ; } if schema_nodes . len ( ) != 1 { return Err ( general_err ! ( " " schema_nodes len ( ) ) ) ; } Ok ( schema_nodes . remove ( 0 ) ) }
Method to convert from Thrift.
Method to convert from Thrift .
elements
&[SchemaElement]