Enum ply_rs::ply::PropertyType [] [src]

pub enum PropertyType {
    Scalar(ScalarType),
    List(ScalarTypeScalarType),
}

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

Simple, "one-number" type.

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]

[src]

Formats the value using the given formatter.

impl PartialEq for PropertyType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for PropertyType
[src]

impl Clone for PropertyType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more