Struct a2lfile::A2lFile[][src]

pub struct A2lFile {
    pub asap2_version: Option<Asap2Version>,
    pub a2ml_version: Option<A2mlVersion>,
    pub project: Project,
    // some fields omitted
}
Expand description

Contains all the objects of an A2lfile

An instance of this struct is returned when an a2l file is loaded successfully

Fields

asap2_version: Option<Asap2Version>a2ml_version: Option<A2mlVersion>project: Project

Implementations

construct a string containing the whole a2l data of this A2lFile object

write this A2lFile object to the given file the banner will be placed inside a comment at the beginning of the file; “/” an “/” should not be part of the banner string

Merge another a2l file on the MODULE level.

The input file and the merge file must each contain exactly one MODULE. The contents will be merged so that there is one merged MODULE in the output.

perform a consistency check on the data.

sort the data in the a2l file. This changes the order in which the blocks will be written to an output file

sort newly added or merged blocks into sensible locations between the existing blocks

cleanup IF_DATA: remove any IF_DATA blocks that could not be parsed using either the specification provided during load or the specification in the A2ML block in the file

Trait Implementations

get a reference to the BlockInfo that describes the layout of the a2l object

get a mutable reference to the BlockInfo that describes the layout of the a2l object

reset the location information on the a2l object. It will be treated like a new object when writing a file

reset the reference to an include file on this objct and its children. This causes the object to be written into the output file instead of referenced through /include “filename” Read more

get the source line number from which the current a2l object was loaded. Returns 0 if the object was newly created and not loaded from a file Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.