# [−]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.

## Blanket Implementations

### impl<T> Same<T> for T

#### type Output = T

Should always be Self

### 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.