pub struct Property { /* private fields */ }Expand description
ISO 23387 PropertyType.
Implementations§
Source§impl Property
impl Property
Sourcepub fn to_element(&self) -> Element
pub fn to_element(&self) -> Element
Encodes as a global dt:Property element.
Source§impl Property
impl Property
Sourcepub fn from_element(element: &Element) -> Result<Self, CodecError>
pub fn from_element(element: &Element) -> Result<Self, CodecError>
Decodes PropertyType content (any element name).
Source§impl Property
impl Property
pub const fn new(concept: Concept, data_type: DataType) -> Self
pub const fn concept(&self) -> &Concept
Sourcepub fn concept_mut(&mut self) -> &mut Concept
pub fn concept_mut(&mut self) -> &mut Concept
Mutable access to the shared ConceptType core.
pub const fn data_type(&self) -> &DataType
pub fn symbols(&self) -> &[String]
Sourcepub fn dimension_refs(&self) -> &[Reference]
pub fn dimension_refs(&self) -> &[Reference]
DimensionRef children; the schema permits any number.
pub fn add_dimension_ref(&mut self, value: Reference)
Sourcepub fn dimension_ref(&self) -> Option<&Reference>
👎Deprecated since 0.3.0: use dimension_refs
pub fn dimension_ref(&self) -> Option<&Reference>
use dimension_refs
The first DimensionRef, when present.
Sourcepub fn set_dimension_ref(&mut self, value: Option<Reference>)
👎Deprecated since 0.3.0: use add_dimension_ref
pub fn set_dimension_ref(&mut self, value: Option<Reference>)
use add_dimension_ref
Replaces every DimensionRef with value (none when None).
pub fn unit_refs(&self) -> &[Reference]
pub fn quantity_kind_refs(&self) -> &[Reference]
pub fn dependency_refs(&self) -> &[Reference]
pub const fn specialization_ref(&self) -> Option<&Reference>
pub fn add_symbol(&mut self, value: impl Into<String>)
pub fn add_unit_ref(&mut self, value: Reference)
pub fn add_quantity_kind_ref(&mut self, value: Reference)
pub fn add_dependency_ref(&mut self, value: Reference)
pub fn set_specialization_ref(&mut self, value: Option<Reference>)
Trait Implementations§
impl Eq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnsafeUnpin for Property
impl UnwindSafe for Property
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more