pub struct ApplicationPrimitiveDataType(/* private fields */);
Expand description
An application primitive data type
Use ArPackage::create_application_primitive_data_type
to create a new application primitive data type.
Implementations§
Source§impl ApplicationPrimitiveDataType
impl ApplicationPrimitiveDataType
Sourcepub fn set_category(
&self,
category: ApplicationPrimitiveCategory,
) -> Result<(), AutosarAbstractionError>
pub fn set_category( &self, category: ApplicationPrimitiveCategory, ) -> Result<(), AutosarAbstractionError>
set the category of the primitive data type
Sourcepub fn category(&self) -> Option<ApplicationPrimitiveCategory>
pub fn category(&self) -> Option<ApplicationPrimitiveCategory>
get the category of the primitive data type
Sourcepub fn set_compu_method(
&self,
compu_method: Option<&CompuMethod>,
) -> Result<(), AutosarAbstractionError>
pub fn set_compu_method( &self, compu_method: Option<&CompuMethod>, ) -> Result<(), AutosarAbstractionError>
set the compu method of the primitive data type
Sourcepub fn compu_method(&self) -> Option<CompuMethod>
pub fn compu_method(&self) -> Option<CompuMethod>
get the compu method of the primitive data type
Sourcepub fn set_unit(
&self,
unit: Option<&Unit>,
) -> Result<(), AutosarAbstractionError>
pub fn set_unit( &self, unit: Option<&Unit>, ) -> Result<(), AutosarAbstractionError>
set the unit of the primitive data type
Sourcepub fn set_data_constraint(
&self,
data_constraint: Option<&DataConstr>,
) -> Result<(), AutosarAbstractionError>
pub fn set_data_constraint( &self, data_constraint: Option<&DataConstr>, ) -> Result<(), AutosarAbstractionError>
set the data constraint of the primitive data type
Sourcepub fn data_constraint(&self) -> Option<DataConstr>
pub fn data_constraint(&self) -> Option<DataConstr>
get the data constraint of the primitive data type
Trait Implementations§
Source§impl Clone for ApplicationPrimitiveDataType
impl Clone for ApplicationPrimitiveDataType
Source§fn clone(&self) -> ApplicationPrimitiveDataType
fn clone(&self) -> ApplicationPrimitiveDataType
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 ApplicationPrimitiveDataType
impl Debug for ApplicationPrimitiveDataType
Source§impl From<ApplicationPrimitiveDataType> for ApplicationDataType
impl From<ApplicationPrimitiveDataType> for ApplicationDataType
Source§fn from(val: ApplicationPrimitiveDataType) -> Self
fn from(val: ApplicationPrimitiveDataType) -> Self
Converts to this type from the input type.
Source§impl From<ApplicationPrimitiveDataType> for Element
impl From<ApplicationPrimitiveDataType> for Element
Source§fn from(val: ApplicationPrimitiveDataType) -> Self
fn from(val: ApplicationPrimitiveDataType) -> Self
Converts to this type from the input type.
Source§impl Hash for ApplicationPrimitiveDataType
impl Hash for ApplicationPrimitiveDataType
Source§impl PartialEq for ApplicationPrimitiveDataType
impl PartialEq for ApplicationPrimitiveDataType
Source§fn eq(&self, other: &ApplicationPrimitiveDataType) -> bool
fn eq(&self, other: &ApplicationPrimitiveDataType) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl AbstractAutosarDataType for ApplicationPrimitiveDataType
impl Eq for ApplicationPrimitiveDataType
impl StructuralPartialEq for ApplicationPrimitiveDataType
Auto Trait Implementations§
impl Freeze for ApplicationPrimitiveDataType
impl !RefUnwindSafe for ApplicationPrimitiveDataType
impl Send for ApplicationPrimitiveDataType
impl Sync for ApplicationPrimitiveDataType
impl Unpin for ApplicationPrimitiveDataType
impl !UnwindSafe for ApplicationPrimitiveDataType
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.