pub enum ValueSpecification {
Array(ArrayValueSpecification),
Record(RecordValueSpecification),
Text(TextValueSpecification),
Numerical(NumericalValueSpecification),
ConstantReference(ConstantReference),
Application(ApplicationValueSpecification),
NotAvailable(NotAvailableValueSpecification),
Reference(ReferenceValueSpecification),
ApplicationRuleBased(ApplicationRuleBasedValueSpecification),
CompositeRuleBased(CompositeRuleBasedValueSpecification),
NumericalRuleBased(NumericalRuleBasedValueSpecification),
}
Expand description
Specification of a value. It is used for constants, signal init values and port init values.
Variants§
Array(ArrayValueSpecification)
array of values
Record(RecordValueSpecification)
record of values. The values may be named using short-labels, but these are not mandatory.
Text(TextValueSpecification)
textual value
Numerical(NumericalValueSpecification)
numerical value
ConstantReference(ConstantReference)
reference to a ConstantValue
Application(ApplicationValueSpecification)
Application value
NotAvailable(NotAvailableValueSpecification)
Default init pattern, which is used when an optional ApplicationRecordElement
in not available
Reference(ReferenceValueSpecification)
reference to a DataPrototype
, to be used as a pointer in the software
ApplicationRuleBased(ApplicationRuleBasedValueSpecification)
A rule to generate application values for an array value specification
CompositeRuleBased(CompositeRuleBasedValueSpecification)
A rule to generate composite values for an array value specification
NumericalRuleBased(NumericalRuleBasedValueSpecification)
A rule to generate numerical values for an array value specification
Trait Implementations§
Source§impl Clone for ValueSpecification
impl Clone for ValueSpecification
Source§fn clone(&self) -> ValueSpecification
fn clone(&self) -> ValueSpecification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ValueSpecification
impl Debug for ValueSpecification
Source§impl From<ApplicationRuleBasedValueSpecification> for ValueSpecification
impl From<ApplicationRuleBasedValueSpecification> for ValueSpecification
Source§fn from(value_spec: ApplicationRuleBasedValueSpecification) -> Self
fn from(value_spec: ApplicationRuleBasedValueSpecification) -> Self
Converts to this type from the input type.
Source§impl From<ApplicationValueSpecification> for ValueSpecification
impl From<ApplicationValueSpecification> for ValueSpecification
Source§fn from(value_spec: ApplicationValueSpecification) -> Self
fn from(value_spec: ApplicationValueSpecification) -> Self
Converts to this type from the input type.
Source§impl From<ArrayValueSpecification> for ValueSpecification
impl From<ArrayValueSpecification> for ValueSpecification
Source§fn from(value_spec: ArrayValueSpecification) -> Self
fn from(value_spec: ArrayValueSpecification) -> Self
Converts to this type from the input type.
Source§impl From<CompositeRuleBasedValueSpecification> for ValueSpecification
impl From<CompositeRuleBasedValueSpecification> for ValueSpecification
Source§fn from(value_spec: CompositeRuleBasedValueSpecification) -> Self
fn from(value_spec: CompositeRuleBasedValueSpecification) -> Self
Converts to this type from the input type.
Source§impl From<ConstantReference> for ValueSpecification
impl From<ConstantReference> for ValueSpecification
Source§fn from(value_spec: ConstantReference) -> Self
fn from(value_spec: ConstantReference) -> Self
Converts to this type from the input type.
Source§impl From<NotAvailableValueSpecification> for ValueSpecification
impl From<NotAvailableValueSpecification> for ValueSpecification
Source§fn from(value_spec: NotAvailableValueSpecification) -> Self
fn from(value_spec: NotAvailableValueSpecification) -> Self
Converts to this type from the input type.
Source§impl From<NumericalRuleBasedValueSpecification> for ValueSpecification
impl From<NumericalRuleBasedValueSpecification> for ValueSpecification
Source§fn from(value_spec: NumericalRuleBasedValueSpecification) -> Self
fn from(value_spec: NumericalRuleBasedValueSpecification) -> Self
Converts to this type from the input type.
Source§impl From<NumericalValueSpecification> for ValueSpecification
impl From<NumericalValueSpecification> for ValueSpecification
Source§fn from(value_spec: NumericalValueSpecification) -> Self
fn from(value_spec: NumericalValueSpecification) -> Self
Converts to this type from the input type.
Source§impl From<RecordValueSpecification> for ValueSpecification
impl From<RecordValueSpecification> for ValueSpecification
Source§fn from(value_spec: RecordValueSpecification) -> Self
fn from(value_spec: RecordValueSpecification) -> Self
Converts to this type from the input type.
Source§impl From<ReferenceValueSpecification> for ValueSpecification
impl From<ReferenceValueSpecification> for ValueSpecification
Source§fn from(value_spec: ReferenceValueSpecification) -> Self
fn from(value_spec: ReferenceValueSpecification) -> Self
Converts to this type from the input type.
Source§impl From<TextValueSpecification> for ValueSpecification
impl From<TextValueSpecification> for ValueSpecification
Source§fn from(value_spec: TextValueSpecification) -> Self
fn from(value_spec: TextValueSpecification) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ValueSpecification
impl PartialEq for ValueSpecification
impl StructuralPartialEq for ValueSpecification
Auto Trait Implementations§
impl Freeze for ValueSpecification
impl !RefUnwindSafe for ValueSpecification
impl Send for ValueSpecification
impl Sync for ValueSpecification
impl Unpin for ValueSpecification
impl !UnwindSafe for ValueSpecification
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