[]Enum plexus::encoding::ply::PropertyType

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 PartialEq<PropertyType> for PropertyType

impl Eq for PropertyType

impl Clone for PropertyType

impl Debug for PropertyType

impl StructuralPartialEq for PropertyType

impl StructuralEq for PropertyType

Auto Trait Implementations

impl Send for PropertyType

impl Sync for PropertyType

impl Unpin for PropertyType

impl UnwindSafe for PropertyType

impl RefUnwindSafe for PropertyType

Blanket Implementations

impl<T> FromGeometry<T> for T[src]

impl<T, U> IntoGeometry<U> for T where
    U: FromGeometry<T>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]