pub struct Attribute {
pub attr_type: AttributeType,
pub num_components: u8,
pub name: String,
pub data: Vec<f32>,
}
Expand description
Attribute data for points or cells
Fields§
§attr_type: AttributeType
Attribute type (point or cell)
num_components: u8
Number of components per attribute
name: String
Attribute name (max 64 chars)
data: Vec<f32>
Attribute data (length = n_points/cells * num_components)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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