pub struct ParameterDataPrototype(/* private fields */);
Expand description
A ParameterDataPrototype
defines a read-only parameter.
Typically such a parameter can be calibrated, but this is not required.
Implementations§
Source§impl ParameterDataPrototype
impl ParameterDataPrototype
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 for this signal
Sourcepub fn init_value(&self) -> Option<ValueSpecification>
pub fn init_value(&self) -> Option<ValueSpecification>
get the init value for this signal
Sourcepub fn interface(&self) -> Result<ParameterInterface, AutosarAbstractionError>
pub fn interface(&self) -> Result<ParameterInterface, 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 parameter
Sourcepub fn data_type(&self) -> Option<AutosarDataType>
pub fn data_type(&self) -> Option<AutosarDataType>
Get the data type of the parameter
Trait Implementations§
Source§impl Clone for ParameterDataPrototype
impl Clone for ParameterDataPrototype
Source§fn clone(&self) -> ParameterDataPrototype
fn clone(&self) -> ParameterDataPrototype
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 ParameterDataPrototype
impl Debug for ParameterDataPrototype
Source§impl From<ParameterDataPrototype> for Element
impl From<ParameterDataPrototype> for Element
Source§fn from(val: ParameterDataPrototype) -> Self
fn from(val: ParameterDataPrototype) -> Self
Converts to this type from the input type.
Source§impl Hash for ParameterDataPrototype
impl Hash for ParameterDataPrototype
Source§impl PartialEq for ParameterDataPrototype
impl PartialEq for ParameterDataPrototype
Source§impl TryFrom<Element> for ParameterDataPrototype
impl TryFrom<Element> for ParameterDataPrototype
impl Eq for ParameterDataPrototype
impl StructuralPartialEq for ParameterDataPrototype
Auto Trait Implementations§
impl Freeze for ParameterDataPrototype
impl !RefUnwindSafe for ParameterDataPrototype
impl Send for ParameterDataPrototype
impl Sync for ParameterDataPrototype
impl Unpin for ParameterDataPrototype
impl !UnwindSafe for ParameterDataPrototype
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.