pub fn count_vertices(&self) -> usize {
        let mut vertex_count: Option<usize> = None;
        for (attribute_name, attribute_data) in self.attributes.iter() {
            let attribute_len = attribute_data.len();
            if let Some(previous_vertex_count) = vertex_count {
                assert_eq!(previous_vertex_count, attribute_len,
                        "Attribute {} has a different vertex count ({}) than other attributes ({}) in this mesh.", attribute_name, attribute_len, previous_vertex_count);
            }
            vertex_count = Some(attribute_len);
        }

        vertex_count.unwrap_or(0)
    }
/// Counts all vertices of the mesh.
///
/// # Panics
/// Panics if the attributes have different vertex counts.
Counts all vertices of the mesh.
Counts all vertices of the mesh .
pub fn count_vertices(&self) -> usize {
        let mut vertex_count: Option<usize> = None;
        for (attribute_name, attribute_data) in self.attributes.iter() {
            let attribute_len = attribute_data.len();
            if let Some(previous_vertex_count) = vertex_count {
                assert_eq!(previous_vertex_count, attribute_len,
                        "Attribute {} has a different vertex count ({}) than other attributes ({}) in this mesh.", attribute_name, attribute_len, previous_vertex_count);
            }
            vertex_count = Some(attribute_len);
        }
        vertex_count.unwrap_or(0)
    }
pub fn count_vertices ( & self ) -> usize { let mut vertex_count : Option < usize > = None ; for ( attribute_name , attribute_data ) in self . attributes . iter ( ) { let attribute_len = attribute_data . len ( ) ; if let Some ( previous_vertex_count ) = vertex_count { assert_eq ! ( previous_vertex_count attribute_len " " attribute_name attribute_len previous_vertex_count ) ; } vertex_count = Some ( attribute_len ) ; } vertex_count . unwrap_or ( 0 ) }
Counts all vertices of the mesh.
Counts all vertices of the mesh .
&self
&self
panics
Panics if the attributes have different vertex counts.
Panics if the attributes have different vertex counts .