pub struct WRRView<'a> { /* private fields */ }Expand description
Zero-copy view over the field data of a WRR 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 WRR with Self::to_owned.
Implementations§
Source§impl<'a> WRRView<'a>
impl<'a> WRRView<'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 head_num(&self) -> U1
pub fn site_grp(&self) -> U1
pub fn finish_t(&self) -> U4
pub fn part_cnt(&self) -> U4
pub fn rtst_cnt(&self) -> U4
pub fn abrt_cnt(&self) -> U4
pub fn good_cnt(&self) -> U4
pub fn func_cnt(&self) -> U4
pub fn wafer_id(&self) -> CnRef<'a>
pub fn fabwf_id(&self) -> CnRef<'a>
pub fn frame_id(&self) -> CnRef<'a>
pub fn mask_id(&self) -> CnRef<'a>
pub fn usr_desc(&self) -> CnRef<'a>
pub fn exc_desc(&self) -> CnRef<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WRRView<'a>
impl<'a> RefUnwindSafe for WRRView<'a>
impl<'a> Send for WRRView<'a>
impl<'a> Sync for WRRView<'a>
impl<'a> Unpin for WRRView<'a>
impl<'a> UnsafeUnpin for WRRView<'a>
impl<'a> UnwindSafe for WRRView<'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