Struct plexus::encoding::ply::PropertyDefinition
[−]pub struct PropertyDefinition {
pub name: String,
pub data_type: PropertyType,
}
Expand description
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
impl PropertyDef
pub fn new(name: String, data_type: PropertyType) -> PropertyDef
pub fn new(name: String, data_type: PropertyType) -> PropertyDef
Creates a new property definition.
Trait Implementations
impl Clone for PropertyDef
impl Clone for PropertyDef
fn clone(&self) -> PropertyDef
fn clone(&self) -> PropertyDef
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for PropertyDef
impl Debug for PropertyDef
impl Key for PropertyDef
impl Key for PropertyDef
impl PartialEq<PropertyDef> for PropertyDef
impl PartialEq<PropertyDef> for PropertyDef
fn eq(&self, other: &PropertyDef) -> bool
fn eq(&self, other: &PropertyDef) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &PropertyDef) -> bool
fn ne(&self, other: &PropertyDef) -> bool
This method tests for !=
.
impl Eq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FromGeometry<T> for T
impl<T> FromGeometry<T> for T
fn from_geometry(other: T) -> T
sourceimpl<T, U> IntoGeometry<U> for T where
U: FromGeometry<T>,
impl<T, U> IntoGeometry<U> for T where
U: FromGeometry<T>,
fn into_geometry(self) -> U
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.