pub enum ImplementationDataTypeSettings {
Value {
name: String,
base_type: SwBaseType,
compu_method: Option<CompuMethod>,
data_constraint: Option<DataConstr>,
},
Array {
name: String,
length: u32,
element_type: Box<ImplementationDataTypeSettings>,
},
Structure {
name: String,
elements: Vec<ImplementationDataTypeSettings>,
},
Union {
name: String,
elements: Vec<ImplementationDataTypeSettings>,
},
DataReference {
name: String,
target: DataPointerTarget,
},
FunctionReference {
name: String,
},
TypeReference {
name: String,
reftype: ImplementationDataType,
compu_method: Option<CompuMethod>,
data_constraint: Option<DataConstr>,
},
}
Expand description
Settings for an implementation data type
This structure is used to create new implementation data types
Variants§
Value
A simple value
Fields
§
base_type: SwBaseType
the base type of the data type
§
compu_method: Option<CompuMethod>
the CompuMethod
of the data type
§
data_constraint: Option<DataConstr>
the data constraints of the data type
Array
An array of elements
Fields
§
element_type: Box<ImplementationDataTypeSettings>
settings to construct the element type of the array
Structure
A structure of elements
Fields
§
elements: Vec<ImplementationDataTypeSettings>
settings for the elements of the structure
Union
A union of elements
Fields
§
elements: Vec<ImplementationDataTypeSettings>
settings for the elements of the union
DataReference
A pointer to data
Fields
§
target: DataPointerTarget
the target of the data pointer; either an SwBaseType
or an ImplementationDataType
FunctionReference
A pointer to a function
TypeReference
A reference to another implementation data type
Fields
§
reftype: ImplementationDataType
the referenced data type
§
compu_method: Option<CompuMethod>
the CompuMethod
of the data type
§
data_constraint: Option<DataConstr>
the data constraints of the data type
Implementations§
Trait Implementations§
Source§impl Clone for ImplementationDataTypeSettings
impl Clone for ImplementationDataTypeSettings
Source§fn clone(&self) -> ImplementationDataTypeSettings
fn clone(&self) -> ImplementationDataTypeSettings
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 PartialEq for ImplementationDataTypeSettings
impl PartialEq for ImplementationDataTypeSettings
Source§fn eq(&self, other: &ImplementationDataTypeSettings) -> bool
fn eq(&self, other: &ImplementationDataTypeSettings) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for ImplementationDataTypeSettings
impl StructuralPartialEq for ImplementationDataTypeSettings
Auto Trait Implementations§
impl Freeze for ImplementationDataTypeSettings
impl !RefUnwindSafe for ImplementationDataTypeSettings
impl Send for ImplementationDataTypeSettings
impl Sync for ImplementationDataTypeSettings
impl Unpin for ImplementationDataTypeSettings
impl !UnwindSafe for ImplementationDataTypeSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.