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

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

Defines a property of an element.


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.


impl PropertyDef

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

Creates a new property definition.

Trait Implementations

impl Clone for PropertyDef

impl Debug for PropertyDef

impl Eq for PropertyDef

impl Key for PropertyDef

impl PartialEq<PropertyDef> for PropertyDef

impl StructuralEq for PropertyDef

impl StructuralPartialEq for PropertyDef

Auto Trait Implementations

impl RefUnwindSafe for PropertyDef

impl Send for PropertyDef

impl Sync for PropertyDef

impl Unpin for PropertyDef

impl UnwindSafe for PropertyDef

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>,