pub struct ElementDef {
pub name: String,
pub count: usize,
pub properties: Vec<PlyProperty>,
}Expand description
Definition of a PLY element type.
Elements define the structure of data rows in a PLY file. Common examples are “vertex” and “face” elements. Each element has a count and list of properties.
Fields§
§name: String§count: usize§properties: Vec<PlyProperty>Implementations§
Source§impl ElementDef
impl ElementDef
Sourcepub fn get_property(&self, name: &str) -> Option<&PlyProperty>
pub fn get_property(&self, name: &str) -> Option<&PlyProperty>
Find a property by name.
Sourcepub fn has_property(&self, name: &str) -> bool
pub fn has_property(&self, name: &str) -> bool
Check if the element has a property.
Trait Implementations§
Source§impl Clone for ElementDef
impl Clone for ElementDef
Source§fn clone(&self) -> ElementDef
fn clone(&self) -> ElementDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ElementDef
impl RefUnwindSafe for ElementDef
impl Send for ElementDef
impl Sync for ElementDef
impl Unpin for ElementDef
impl UnwindSafe for ElementDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more