Trait pasture_core::layout::PrimitiveType[][src]

pub trait PrimitiveType: Copy + Sealed {
    fn data_type() -> PointAttributeDataType;
}

Marker trait for all types that can be used as primitive types within a PointAttributeDefinition. It provides a mapping between Rust types and the PointAttributeDataType enum.

Required methods

fn data_type() -> PointAttributeDataType[src]

Returns the corresponding PointAttributeDataType for the implementing type

Loading content...

Implementations on Foreign Types

impl PrimitiveType for u8[src]

impl PrimitiveType for u16[src]

impl PrimitiveType for u32[src]

impl PrimitiveType for u64[src]

impl PrimitiveType for i8[src]

impl PrimitiveType for i16[src]

impl PrimitiveType for i32[src]

impl PrimitiveType for i64[src]

impl PrimitiveType for f32[src]

impl PrimitiveType for f64[src]

impl PrimitiveType for bool[src]

impl PrimitiveType for Vector3<u8>[src]

impl PrimitiveType for Vector3<u16>[src]

impl PrimitiveType for Vector3<f32>[src]

impl PrimitiveType for Vector3<f64>[src]

Loading content...

Implementors

Loading content...