pub struct STRView<'a> { /* private fields */ }Expand description
Zero-copy view over the field data of a STR 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 STR with Self::to_owned.
Implementations§
Source§impl<'a> STRView<'a>
impl<'a> STRView<'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 cont_flg(&self) -> B1
pub fn test_num(&self) -> U4
pub fn head_num(&self) -> U1
pub fn site_num(&self) -> U1
pub fn psr_ref(&self) -> U2
pub fn test_flg(&self) -> B1
pub fn log_typ(&self) -> CnRef<'a>
pub fn test_txt(&self) -> CnRef<'a>
pub fn alarm_id(&self) -> CnRef<'a>
pub fn prog_txt(&self) -> CnRef<'a>
pub fn rslt_txt(&self) -> CnRef<'a>
pub fn z_val(&self) -> U1
pub fn fmu_flg(&self) -> B1
pub fn mask_map(&self) -> DnRef<'a>
pub fn fal_map(&self) -> DnRef<'a>
pub fn cyc_cnt_t(&self) -> U8
pub fn totf_cnt(&self) -> U4
pub fn totl_cnt(&self) -> U4
pub fn cyc_base(&self) -> U8
pub fn bit_base(&self) -> U4
pub fn cond_cnt(&self) -> U2
pub fn lim_cnt(&self) -> U2
pub fn cyc_size(&self) -> U1
pub fn pmr_size(&self) -> U1
pub fn chn_size(&self) -> U1
pub fn pat_size(&self) -> U1
pub fn bit_size(&self) -> U1
pub fn u1_size(&self) -> U1
pub fn u2_size(&self) -> U1
pub fn u3_size(&self) -> U1
pub fn utx_size(&self) -> U1
pub fn cap_bgn(&self) -> U2
pub fn lim_indx(&self) -> KxU2
pub fn lim_spec(&self) -> KxU4
pub fn cond_lst(&self) -> KxCnRef<'a>
pub fn cyc_cnt(&self) -> U2
pub fn cyc_ofst(&self) -> KxUf
pub fn pmr_cnt(&self) -> U2
pub fn pmr_indx(&self) -> KxUf
pub fn chn_cnt(&self) -> U2
pub fn chn_num(&self) -> KxUf
pub fn exp_cnt(&self) -> U2
pub fn exp_data(&self) -> KxU1
pub fn cap_cnt(&self) -> U2
pub fn cap_data(&self) -> KxU1
pub fn new_cnt(&self) -> U2
pub fn new_data(&self) -> KxU1
pub fn pat_cnt(&self) -> U2
pub fn pat_num(&self) -> KxUf
pub fn bpos_cnt(&self) -> U2
pub fn bit_pos(&self) -> KxUf
pub fn usr1_cnt(&self) -> U2
pub fn usr1(&self) -> KxUf
pub fn usr2_cnt(&self) -> U2
pub fn usr2(&self) -> KxUf
pub fn usr3_cnt(&self) -> U2
pub fn usr3(&self) -> KxUf
pub fn txt_cnt(&self) -> U2
pub fn user_txt(&self) -> KxCfRef<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for STRView<'a>
impl<'a> RefUnwindSafe for STRView<'a>
impl<'a> Send for STRView<'a>
impl<'a> Sync for STRView<'a>
impl<'a> Unpin for STRView<'a>
impl<'a> UnsafeUnpin for STRView<'a>
impl<'a> UnwindSafe for STRView<'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