ply_rs::ply

Type Alias DefaultElement

Source
pub type DefaultElement = KeyMap<Property>;
Expand description

Ready to use data-structure for all kind of element definitions.

PLY files carry the payload format in their head section. Hence, they can contain all kind of elements, or formulated differently, they define types very dinamically. To achieve this flexibility in rust, this alias to a HashMap is provided.

If you need a more compact representation or faster access, you might want to define your own structures and implement the PropertyAccess trait.

Aliased Type§

struct DefaultElement { /* private fields */ }

Trait Implementations§

Source§

impl PropertyAccess for DefaultElement

Source§

fn new() -> Self

Source§

fn set_property(&mut self, key: String, property: Property)

Source§

fn get_char(&self, key: &String) -> Option<i8>

Source§

fn get_uchar(&self, key: &String) -> Option<u8>

Source§

fn get_short(&self, key: &String) -> Option<i16>

Source§

fn get_ushort(&self, key: &String) -> Option<u16>

Source§

fn get_int(&self, key: &String) -> Option<i32>

Source§

fn get_uint(&self, key: &String) -> Option<u32>

Source§

fn get_float(&self, key: &String) -> Option<f32>

Source§

fn get_double(&self, key: &String) -> Option<f64>

Source§

fn get_list_char(&self, key: &String) -> Option<&[i8]>

Source§

fn get_list_uchar(&self, key: &String) -> Option<&[u8]>

Source§

fn get_list_short(&self, key: &String) -> Option<&[i16]>

Source§

fn get_list_ushort(&self, key: &String) -> Option<&[u16]>

Source§

fn get_list_int(&self, key: &String) -> Option<&[i32]>

Source§

fn get_list_uint(&self, key: &String) -> Option<&[u32]>

Source§

fn get_list_float(&self, key: &String) -> Option<&[f32]>

Source§

fn get_list_double(&self, key: &String) -> Option<&[f64]>