Trait a2lfile::A2lObject [−][src]
pub trait A2lObject<T> { fn get_layout(&self) -> &BlockInfo<T>; fn get_layout_mut(&mut self) -> &mut BlockInfo<T>; fn reset_location(&mut self); fn merge_includes(&mut self); fn get_line(&self) -> u32; }
Expand description
The trait A2lObject is implemented for all a2l objects as well as all objects generated by the a2ml_specification! macro. It gives access to layout and location data which is tracked for each object in an a2l file.
Required methods
fn get_layout(&self) -> &BlockInfo<T>
[src]
fn get_layout(&self) -> &BlockInfo<T>
[src]get a reference to the BlockInfo that describes the layout of the a2l object
fn get_layout_mut(&mut self) -> &mut BlockInfo<T>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<T>
[src]get a mutable reference to the BlockInfo that describes the layout of the a2l object
fn reset_location(&mut self)
[src]
fn reset_location(&mut self)
[src]reset the location information on the a2l object. It will be treated like a new object when writing a file
fn merge_includes(&mut self)
[src]
fn merge_includes(&mut self)
[src]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”
Implementors
impl A2lObject<((u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool))> for SiExponents
[src]
impl A2lObject<((u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool))> for SiExponents
[src]fn get_layout(
&self
) -> &BlockInfo<((u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool))>
[src]
&self
) -> &BlockInfo<((u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool))>
fn get_layout_mut(
&mut self
) -> &mut BlockInfo<((u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool))>
[src]
&mut self
) -> &mut BlockInfo<((u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool), (u32, bool))>
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<(u32, u32, (u32, bool), u32, u32, u32, u32, (u32, bool), u32, u32)> for AxisPts
[src]
impl A2lObject<(u32, u32, (u32, bool), u32, u32, u32, u32, (u32, bool), u32, u32)> for AxisPts
[src]fn get_layout(
&self
) -> &BlockInfo<(u32, u32, (u32, bool), u32, u32, u32, u32, (u32, bool), u32, u32)>
[src]
&self
) -> &BlockInfo<(u32, u32, (u32, bool), u32, u32, u32, u32, (u32, bool), u32, u32)>
fn get_layout_mut(
&mut self
) -> &mut BlockInfo<(u32, u32, (u32, bool), u32, u32, u32, u32, (u32, bool), u32, u32)>
[src]
&mut self
) -> &mut BlockInfo<(u32, u32, (u32, bool), u32, u32, u32, u32, (u32, bool), u32, u32)>
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<(u32, u32, u32, u32, u32, (u32, bool), (u32, bool), [(u32, bool); 5])> for MemorySegment
[src]
impl A2lObject<(u32, u32, u32, u32, u32, (u32, bool), (u32, bool), [(u32, bool); 5])> for MemorySegment
[src]fn get_layout(
&self
) -> &BlockInfo<(u32, u32, u32, u32, u32, (u32, bool), (u32, bool), [(u32, bool); 5])>
[src]
&self
) -> &BlockInfo<(u32, u32, u32, u32, u32, (u32, bool), (u32, bool), [(u32, bool); 5])>
fn get_layout_mut(
&mut self
) -> &mut BlockInfo<(u32, u32, u32, u32, u32, (u32, bool), (u32, bool), [(u32, bool); 5])>
[src]
&mut self
) -> &mut BlockInfo<(u32, u32, u32, u32, u32, (u32, bool), (u32, bool), [(u32, bool); 5])>
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for A2lFile
[src]
impl A2lObject<()> for A2lFile
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for Annotation
[src]
impl A2lObject<()> for Annotation
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for BitOperation
[src]
impl A2lObject<()> for BitOperation
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for ConsistentExchange
[src]
impl A2lObject<()> for ConsistentExchange
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for Discrete
[src]
impl A2lObject<()> for Discrete
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for GuardRails
[src]
impl A2lObject<()> for GuardRails
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for IfData
[src]
impl A2lObject<()> for IfData
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for Overwrite
[src]
impl A2lObject<()> for Overwrite
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for ReadOnly
[src]
impl A2lObject<()> for ReadOnly
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for ReadWrite
[src]
impl A2lObject<()> for ReadWrite
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for Root
[src]
impl A2lObject<()> for Root
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for SignExtend
[src]
impl A2lObject<()> for SignExtend
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for StaticAddressOffsets
[src]
impl A2lObject<()> for StaticAddressOffsets
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for StaticRecordLayout
[src]
impl A2lObject<()> for StaticRecordLayout
[src]fn get_layout(&self) -> &BlockInfo<()>
[src]
fn get_layout_mut(&mut self) -> &mut BlockInfo<()>
[src]
fn reset_location(&mut self)
[src]
fn merge_includes(&mut self)
[src]
fn get_line(&self) -> u32
[src]
impl A2lObject<()> for VariantCoding
[src]
impl A2lObject<()> for VariantCoding
[src]