Dbc

Struct Dbc 

Source
pub struct Dbc { /* private fields */ }

Implementations§

Source§

impl Dbc

Auto-generated by derive_getters::Getters.

Source

pub fn version(&self) -> &Version

Version generated by DB editor

Source

pub fn new_symbols(&self) -> &Vec<Symbol>

Get field new_symbols from instance of Dbc.

Source

pub fn bit_timing(&self) -> &Option<Vec<Baudrate>>

Baud rate of network

Source

pub fn nodes(&self) -> &Vec<Node>

CAN network nodes

Source

pub fn value_tables(&self) -> &Vec<ValueTable>

Global value table

Source

pub fn messages(&self) -> &Vec<Message>

CAN message (frame) details including signal details

Source

pub fn message_transmitters(&self) -> &Vec<MessageTransmitter>

Get field message_transmitters from instance of Dbc.

Source

pub fn environment_variables(&self) -> &Vec<EnvironmentVariable>

Get field environment_variables from instance of Dbc.

Source

pub fn environment_variable_data(&self) -> &Vec<EnvironmentVariableData>

Get field environment_variable_data from instance of Dbc.

Source

pub fn signal_types(&self) -> &Vec<SignalType>

Get field signal_types from instance of Dbc.

Source

pub fn comments(&self) -> &Vec<Comment>

Object comments

Source

pub fn attribute_definitions(&self) -> &Vec<AttributeDefinition>

Get field attribute_definitions from instance of Dbc.

Source

pub fn attribute_defaults(&self) -> &Vec<AttributeDefault>

Get field attribute_defaults from instance of Dbc.

Source

pub fn attribute_values(&self) -> &Vec<AttributeValueForObject>

Get field attribute_values from instance of Dbc.

Source

pub fn value_descriptions(&self) -> &Vec<ValueDescription>

Encoding for signal raw values

Source

pub fn signal_type_refs(&self) -> &Vec<SignalTypeRef>

Get field signal_type_refs from instance of Dbc.

Source

pub fn signal_groups(&self) -> &Vec<SignalGroups>

Signal groups define a group of signals within a message

Source

pub fn signal_extended_value_type_list( &self, ) -> &Vec<SignalExtendedValueTypeList>

Get field signal_extended_value_type_list from instance of Dbc.

Source

pub fn extended_multiplex(&self) -> &Vec<ExtendedMultiplex>

Extended multiplex attributes

Source§

impl Dbc

Source

pub fn from_str(dbc_in: &str) -> Result<Dbc, Error<'_>>

👎Deprecated since 4.0.0: please use Dbc::try_from instead
Source

pub fn signal_by_name( &self, message_id: MessageId, signal_name: &str, ) -> Option<&Signal>

Source

pub fn message_comment(&self, message_id: MessageId) -> Option<&str>

Lookup a message comment

Source

pub fn signal_comment( &self, message_id: MessageId, signal_name: &str, ) -> Option<&str>

Lookup a signal comment

Source

pub fn value_descriptions_for_signal( &self, message_id: MessageId, signal_name: &str, ) -> Option<&[ValDescription]>

Lookup value descriptions for signal

Source

pub fn extended_value_type_for_signal( &self, message_id: MessageId, signal_name: &str, ) -> Option<&SignalExtendedValueType>

Lookup the extended value for a given signal

Source

pub fn message_multiplexor_switch( &self, message_id: MessageId, ) -> Result<Option<&Signal>, Error<'_>>

Lookup the message multiplexor switch signal for a given message This does not work for extended multiplexed messages, if multiple multiplexors are defined for a message a Error is returned.

Trait Implementations§

Source§

impl Clone for Dbc

Source§

fn clone(&self) -> Dbc

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Dbc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Dbc

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Dbc

Source§

fn eq(&self, other: &Dbc) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Dbc

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a> TryFrom<&'a str> for Dbc

Source§

type Error = Error<'a>

The type returned in the event of a conversion error.
Source§

fn try_from(dbc_in: &'a str) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for Dbc

Auto Trait Implementations§

§

impl Freeze for Dbc

§

impl RefUnwindSafe for Dbc

§

impl Send for Dbc

§

impl Sync for Dbc

§

impl Unpin for Dbc

§

impl UnwindSafe for Dbc

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,