pub struct ParameterInterface(/* private fields */);
Expand description
A ParameterInterface
defines a set of parameters that can be accessed
Use ArPackage::create_parameter_interface
to create a new parameter interface
Implementations§
Source§impl ParameterInterface
impl ParameterInterface
Sourcepub fn create_parameter<T: AbstractAutosarDataType>(
&self,
name: &str,
data_type: &T,
) -> Result<ParameterDataPrototype, AutosarAbstractionError>
pub fn create_parameter<T: AbstractAutosarDataType>( &self, name: &str, data_type: &T, ) -> Result<ParameterDataPrototype, AutosarAbstractionError>
Create a new ParameterDataPrototype
in this ParameterInterface
Sourcepub fn parameters(
&self,
) -> impl Iterator<Item = ParameterDataPrototype> + Send + 'static
pub fn parameters( &self, ) -> impl Iterator<Item = ParameterDataPrototype> + Send + 'static
iterate over all ParameterDataPrototype
in this ParameterInterface
Trait Implementations§
Source§impl AbstractPortInterface for ParameterInterface
impl AbstractPortInterface for ParameterInterface
Source§fn set_is_service(
&self,
is_service: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_is_service( &self, is_service: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Set the isService property for this port interface
Source§fn is_service(&self) -> Option<bool>
fn is_service(&self) -> Option<bool>
Get the isService property for this port interface
Source§impl Clone for ParameterInterface
impl Clone for ParameterInterface
Source§fn clone(&self) -> ParameterInterface
fn clone(&self) -> ParameterInterface
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 ParameterInterface
impl Debug for ParameterInterface
Source§impl From<ParameterInterface> for Element
impl From<ParameterInterface> for Element
Source§fn from(val: ParameterInterface) -> Self
fn from(val: ParameterInterface) -> Self
Converts to this type from the input type.
Source§impl Hash for ParameterInterface
impl Hash for ParameterInterface
Source§impl PartialEq for ParameterInterface
impl PartialEq for ParameterInterface
Source§impl TryFrom<Element> for ParameterInterface
impl TryFrom<Element> for ParameterInterface
impl Eq for ParameterInterface
impl StructuralPartialEq for ParameterInterface
Auto Trait Implementations§
impl Freeze for ParameterInterface
impl !RefUnwindSafe for ParameterInterface
impl Send for ParameterInterface
impl Sync for ParameterInterface
impl Unpin for ParameterInterface
impl !UnwindSafe for ParameterInterface
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.