Enum ply_rs::ply::PropertyType
[−]
[src]
pub enum PropertyType { Scalar(ScalarType), List(ScalarType, ScalarType), }
Data type used to encode properties in the payload.
There are two possible types: scalars and lists. Lists are a sequence of scalars with a leading integer value defining how many elements the list contains.
Variants
Scalar(ScalarType)
Simple, "one-number" type.
List(ScalarType, ScalarType)
Defines a sequence of scalars with the same type.
First value is the index type which should be an integer variant,
Encoded in ascii, you always get the same number in the file (for example 32
or 17
).
Hence, a good choice is mainly important for internal representation and binary encoding. T
he possible trade-off should be obvious:
List length/flexibility against storage size. Though this obviously depends on your specific use case.
Second value is the type of the list elemetns.
Trait Implementations
impl Debug for PropertyType
[src]
impl PartialEq for PropertyType
[src]
fn eq(&self, __arg_0: &PropertyType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PropertyType) -> bool
[src]
This method tests for !=
.
impl Eq for PropertyType
[src]
impl Clone for PropertyType
[src]
fn clone(&self) -> PropertyType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more