lin_ldf

Struct LinLdf

Source
pub struct LinLdf {
    pub header: LdfHeader,
    pub nodes: LdfNodes,
    pub signals: Vec<LdfSignal>,
    pub diagnostic_signals: Vec<LdfDiagnosticSignal>,
    pub frames: Vec<LdfFrame>,
    pub diagnostic_frames: Vec<LdfDiagnosticFrame>,
    pub node_attributes: Vec<LdfNodeAttributes>,
    pub schedule_tables: Vec<LdfScheduleTable>,
    pub signal_encoding_types: Vec<LdfSignalEncodingType>,
    pub signal_representations: Vec<LdfSignalRepresentation>,
}

Fields§

§header: LdfHeader§nodes: LdfNodes§signals: Vec<LdfSignal>§diagnostic_signals: Vec<LdfDiagnosticSignal>§frames: Vec<LdfFrame>§diagnostic_frames: Vec<LdfDiagnosticFrame>§node_attributes: Vec<LdfNodeAttributes>§schedule_tables: Vec<LdfScheduleTable>§signal_encoding_types: Vec<LdfSignalEncodingType>§signal_representations: Vec<LdfSignalRepresentation>

Implementations§

Source§

impl LinLdf

Source

pub fn parse(s: &str) -> Result<LinLdf, &'static str>

<LIN_description_file> ::=

LIN_description_file ;
<LIN_protocol_version_def>
<LIN_language_version_def>
<LIN_speed_def>
(<Channel_name_def>)
<Node_def>
(<Node_composition_def>)
<Signal_def>
(<Diag_signal_def>)
<Frame_def>
(<Sporadic_frame_def>)
(<Event_triggered_frame_def>)
(<Diag_frame_def>)
<Node_attributes_def>
<Schedule_table_def>
(<Signal_groups_def>)
(<Signal_encoding_type_def>)
(<Signal_representation_def>)

Auto Trait Implementations§

§

impl Freeze for LinLdf

§

impl RefUnwindSafe for LinLdf

§

impl Send for LinLdf

§

impl Sync for LinLdf

§

impl Unpin for LinLdf

§

impl UnwindSafe for LinLdf

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> 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, 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.