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

pub enum PropertyType {
    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.



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

impl Debug for PropertyType

impl Eq for PropertyType

impl PartialEq<PropertyType> for PropertyType

impl StructuralEq for PropertyType

impl StructuralPartialEq for PropertyType

Auto Trait Implementations

impl RefUnwindSafe for PropertyType

impl Send for PropertyType

impl Sync for PropertyType

impl Unpin for PropertyType

impl UnwindSafe for PropertyType

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> IntoGeometry<U> for T where
    U: FromGeometry<T>, 

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<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

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