pub enum CustomData {
CustomIndex(Box<[IndexType]>, usize),
CustomIntiger(Box<[IndexType]>, usize),
CustomFloat(Box<[FloatType]>, FloatType),
CustomColorRGBA(Box<[Vector4]>, FloatType),
}Expand description
Custom mesh data.
Variants§
CustomIndex(Box<[IndexType]>, usize)
CustomIntiger(Box<[IndexType]>, usize)
CustomFloat(Box<[FloatType]>, FloatType)
CustomColorRGBA(Box<[Vector4]>, FloatType)
Implementations§
Source§impl CustomData
impl CustomData
Sourcepub fn as_index(&self) -> Option<(&[IndexType], usize)>
pub fn as_index(&self) -> Option<(&[IndexType], usize)>
Returns the index data if custom segment is an index segment. Returns the index array and max index.
pub fn as_intiger(&self) -> Option<(&[IndexType], usize)>
pub fn as_float(&self) -> Option<(&[FloatType], FloatType)>
pub fn as_color_rgba(&self) -> Option<(&[Vector4], FloatType)>
Trait Implementations§
Source§impl Clone for CustomData
impl Clone for CustomData
Source§fn clone(&self) -> CustomData
fn clone(&self) -> CustomData
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 moreSource§impl Debug for CustomData
impl Debug for CustomData
Source§impl From<&[f32]> for CustomData
impl From<&[f32]> for CustomData
Auto Trait Implementations§
impl Freeze for CustomData
impl RefUnwindSafe for CustomData
impl Send for CustomData
impl Sync for CustomData
impl Unpin for CustomData
impl UnwindSafe for CustomData
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