[][src]Struct ply_rs::ply::PropertyDef

pub struct PropertyDef {
    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.

Implementations

impl PropertyDef[src]

pub fn new(name: String, data_type: PropertyType) -> Self[src]

Creates a new property definition.

Trait Implementations

impl Clone for PropertyDef[src]

impl Debug for PropertyDef[src]

impl Eq for PropertyDef[src]

impl Key for PropertyDef[src]

impl PartialEq<PropertyDef> for PropertyDef[src]

impl StructuralEq for PropertyDef[src]

impl StructuralPartialEq for PropertyDef[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.