pub struct VariableDataPrototype(/* private fields */);
Expand description
A VariableDataPrototype
represents a data element in a SenderReceiverInterface
Implementations§
Source§impl VariableDataPrototype
impl VariableDataPrototype
Sourcepub fn interface(
&self,
) -> Result<SenderReceiverInterface, AutosarAbstractionError>
pub fn interface( &self, ) -> Result<SenderReceiverInterface, AutosarAbstractionError>
Get the interface containing the data element
Sourcepub fn set_data_type<T: AbstractAutosarDataType>(
&self,
data_type: &T,
) -> Result<(), AutosarAbstractionError>
pub fn set_data_type<T: AbstractAutosarDataType>( &self, data_type: &T, ) -> Result<(), AutosarAbstractionError>
Set the data type of the data element
Sourcepub fn data_type(&self) -> Option<AutosarDataType>
pub fn data_type(&self) -> Option<AutosarDataType>
Get the data type of the data element
Sourcepub fn set_init_value<T: Into<ValueSpecification>>(
&self,
value_spec: Option<T>,
) -> Result<(), AutosarAbstractionError>
pub fn set_init_value<T: Into<ValueSpecification>>( &self, value_spec: Option<T>, ) -> Result<(), AutosarAbstractionError>
Set the init value of the data element
Sourcepub fn init_value(&self) -> Option<ValueSpecification>
pub fn init_value(&self) -> Option<ValueSpecification>
Get the init value of the data element
Trait Implementations§
Source§impl Clone for VariableDataPrototype
impl Clone for VariableDataPrototype
Source§fn clone(&self) -> VariableDataPrototype
fn clone(&self) -> VariableDataPrototype
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 VariableDataPrototype
impl Debug for VariableDataPrototype
Source§impl From<VariableDataPrototype> for Element
impl From<VariableDataPrototype> for Element
Source§fn from(val: VariableDataPrototype) -> Self
fn from(val: VariableDataPrototype) -> Self
Converts to this type from the input type.
Source§impl Hash for VariableDataPrototype
impl Hash for VariableDataPrototype
Source§impl PartialEq for VariableDataPrototype
impl PartialEq for VariableDataPrototype
Source§impl TryFrom<Element> for VariableDataPrototype
impl TryFrom<Element> for VariableDataPrototype
impl Eq for VariableDataPrototype
impl StructuralPartialEq for VariableDataPrototype
Auto Trait Implementations§
impl Freeze for VariableDataPrototype
impl !RefUnwindSafe for VariableDataPrototype
impl Send for VariableDataPrototype
impl Sync for VariableDataPrototype
impl Unpin for VariableDataPrototype
impl !UnwindSafe for VariableDataPrototype
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.