Struct a2lfile::StructureComponent
source · pub struct StructureComponent {
pub component_name: String,
pub component_type: String,
pub address_offset: u32,
pub address_type: Option<AddressType>,
pub layout: Option<Layout>,
pub matrix_dim: Option<MatrixDim>,
pub symbol_type_link: Option<SymbolTypeLink>,
/* private fields */
}
Expand description
defines a single component of a TYPEDEF_STRUCTURE
Fields§
§component_name: String
§component_type: String
§address_offset: u32
§address_type: Option<AddressType>
§layout: Option<Layout>
§matrix_dim: Option<MatrixDim>
§symbol_type_link: Option<SymbolTypeLink>
Implementations§
Trait Implementations§
source§impl A2lObject<(u32, u32, (u32, bool))> for StructureComponent
impl A2lObject<(u32, u32, (u32, bool))> for StructureComponent
source§fn get_layout(&self) -> &BlockInfo<(u32, u32, (u32, bool))>
fn get_layout(&self) -> &BlockInfo<(u32, u32, (u32, bool))>
get a reference to the
BlockInfo
that describes the layout of the a2l objectsource§fn get_layout_mut(&mut self) -> &mut BlockInfo<(u32, u32, (u32, bool))>
fn get_layout_mut(&mut self) -> &mut BlockInfo<(u32, u32, (u32, bool))>
get a mutable reference to the
BlockInfo
that describes the layout of the a2l objectsource§fn reset_location(&mut self)
fn reset_location(&mut self)
reset the location information on the a2l object. It will be treated like a new object when writing a file
source§fn merge_includes(&mut self)
fn merge_includes(&mut self)
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”
source§impl Clone for StructureComponent
impl Clone for StructureComponent
source§fn clone(&self) -> StructureComponent
fn clone(&self) -> StructureComponent
Returns a copy 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 StructureComponent
impl Debug for StructureComponent
Auto Trait Implementations§
impl Freeze for StructureComponent
impl RefUnwindSafe for StructureComponent
impl Send for StructureComponent
impl Sync for StructureComponent
impl Unpin for StructureComponent
impl UnwindSafe for StructureComponent
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