pub struct EncodedAttributeInfo {
pub source_attribute_id: i32,
pub attribute_type: GeometryAttributeType,
pub data_type: DataType,
pub num_components: u8,
pub normalized: bool,
pub unique_id: u32,
pub num_encoded_values: usize,
pub position_min: Option<Vec<f64>>,
pub position_max: Option<Vec<f64>>,
}Available on crate feature
encoder only.Expand description
Attribute metadata produced by a successful mesh encode.
Fields§
§source_attribute_id: i32Source attribute id in the input mesh.
attribute_type: GeometryAttributeTypeSemantic type of the encoded attribute.
data_type: DataTypeScalar data type of the encoded attribute.
num_components: u8Number of scalar components per encoded value.
normalized: boolWhether integer values are normalized.
unique_id: u32Draco unique id assigned to the attribute.
num_encoded_values: usizeNumber of unique values encoded for the attribute.
position_min: Option<Vec<f64>>Minimum position components when known for position attributes.
position_max: Option<Vec<f64>>Maximum position components when known for position attributes.
Trait Implementations§
Source§impl Clone for EncodedAttributeInfo
impl Clone for EncodedAttributeInfo
Source§fn clone(&self) -> EncodedAttributeInfo
fn clone(&self) -> EncodedAttributeInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodedAttributeInfo
impl Debug for EncodedAttributeInfo
Source§impl PartialEq for EncodedAttributeInfo
impl PartialEq for EncodedAttributeInfo
Source§fn eq(&self, other: &EncodedAttributeInfo) -> bool
fn eq(&self, other: &EncodedAttributeInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EncodedAttributeInfo
Auto Trait Implementations§
impl Freeze for EncodedAttributeInfo
impl RefUnwindSafe for EncodedAttributeInfo
impl Send for EncodedAttributeInfo
impl Sync for EncodedAttributeInfo
impl Unpin for EncodedAttributeInfo
impl UnsafeUnpin for EncodedAttributeInfo
impl UnwindSafe for EncodedAttributeInfo
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