pub struct MIRView<'a> { /* private fields */ }Expand description
Zero-copy view over the field data of a MIR record.
Borrows the raw bytes and reads fields on demand via getters. Create one with Self::new or via [StdfRecordView::read_from_bytes]; convert back to an owned MIR with Self::to_owned.
Implementations§
Source§impl<'a> MIRView<'a>
impl<'a> MIRView<'a>
Sourcepub fn new(raw: &'a [u8], order: &ByteOrder) -> Self
pub fn new(raw: &'a [u8], order: &ByteOrder) -> Self
Scan the given raw data and store byte offset of each field.
pub fn setup_t(&self) -> U4
pub fn start_t(&self) -> U4
pub fn stat_num(&self) -> U1
pub fn mode_cod(&self) -> C1
pub fn rtst_cod(&self) -> C1
pub fn prot_cod(&self) -> C1
pub fn burn_tim(&self) -> U2
pub fn cmod_cod(&self) -> C1
pub fn lot_id(&self) -> CnRef<'a>
pub fn part_typ(&self) -> CnRef<'a>
pub fn node_nam(&self) -> CnRef<'a>
pub fn tstr_typ(&self) -> CnRef<'a>
pub fn job_nam(&self) -> CnRef<'a>
pub fn job_rev(&self) -> CnRef<'a>
pub fn sblot_id(&self) -> CnRef<'a>
pub fn oper_nam(&self) -> CnRef<'a>
pub fn exec_typ(&self) -> CnRef<'a>
pub fn exec_ver(&self) -> CnRef<'a>
pub fn test_cod(&self) -> CnRef<'a>
pub fn tst_temp(&self) -> CnRef<'a>
pub fn user_txt(&self) -> CnRef<'a>
pub fn aux_file(&self) -> CnRef<'a>
pub fn pkg_typ(&self) -> CnRef<'a>
pub fn famly_id(&self) -> CnRef<'a>
pub fn date_cod(&self) -> CnRef<'a>
pub fn facil_id(&self) -> CnRef<'a>
pub fn floor_id(&self) -> CnRef<'a>
pub fn proc_id(&self) -> CnRef<'a>
pub fn oper_frq(&self) -> CnRef<'a>
pub fn spec_nam(&self) -> CnRef<'a>
pub fn spec_ver(&self) -> CnRef<'a>
pub fn flow_id(&self) -> CnRef<'a>
pub fn setup_id(&self) -> CnRef<'a>
pub fn dsgn_rev(&self) -> CnRef<'a>
pub fn eng_id(&self) -> CnRef<'a>
pub fn rom_cod(&self) -> CnRef<'a>
pub fn serl_num(&self) -> CnRef<'a>
pub fn supr_nam(&self) -> CnRef<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MIRView<'a>
impl<'a> RefUnwindSafe for MIRView<'a>
impl<'a> Send for MIRView<'a>
impl<'a> Sync for MIRView<'a>
impl<'a> Unpin for MIRView<'a>
impl<'a> UnsafeUnpin for MIRView<'a>
impl<'a> UnwindSafe for MIRView<'a>
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