[−][src]Struct ply_rs::ply::PropertyDef
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]
fn clone(&self) -> PropertyDef
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PropertyDef
[src]
impl Eq for PropertyDef
[src]
impl Key for PropertyDef
[src]
impl PartialEq<PropertyDef> for PropertyDef
[src]
fn eq(&self, other: &PropertyDef) -> bool
[src]
fn ne(&self, other: &PropertyDef) -> bool
[src]
impl StructuralEq for PropertyDef
[src]
impl StructuralPartialEq for PropertyDef
[src]
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,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,