[]Struct plexus::encoding::ply::PropertyDefinition

pub struct PropertyDefinition {
    pub name: String,
    pub data_type: PropertyType,
}

Defines a property of an element.

Fields

name: String

Unique name of property.

The name should be unique for each property of the same element.

data_type: PropertyType

Data type of the property: You can have simple scalars (ints, floats, etc.) or lists of scalars. In the case of lists you need to decide in which type you want to store the list length and what type to use for the list elemetns.

Methods

impl PropertyDef

pub fn new(name: String, data_type: PropertyType) -> PropertyDef

Creates a new property definition.

Trait Implementations

impl PartialEq<PropertyDef> for PropertyDef

impl Eq for PropertyDef

impl Clone for PropertyDef

impl Key for PropertyDef

impl Debug for PropertyDef

impl StructuralPartialEq for PropertyDef

impl StructuralEq for PropertyDef

Auto Trait Implementations

impl Send for PropertyDef

impl Sync for PropertyDef

impl Unpin for PropertyDef

impl UnwindSafe for PropertyDef

impl RefUnwindSafe for PropertyDef

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]