pub struct PLRView<'a> { /* private fields */ }Expand description
Zero-copy view over the field data of a PLR 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 PLR with Self::to_owned.
Implementations§
Source§impl<'a> PLRView<'a>
impl<'a> PLRView<'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 grp_cnt(&self) -> U2
pub fn grp_indx(&self) -> KxU2
pub fn grp_mode(&self) -> KxU2
pub fn grp_radx(&self) -> KxU1
pub fn pgm_char(&self) -> KxCnRef<'a>
pub fn rtn_char(&self) -> KxCnRef<'a>
pub fn pgm_chal(&self) -> KxCnRef<'a>
pub fn rtn_chal(&self) -> KxCnRef<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PLRView<'a>
impl<'a> RefUnwindSafe for PLRView<'a>
impl<'a> Send for PLRView<'a>
impl<'a> Sync for PLRView<'a>
impl<'a> Unpin for PLRView<'a>
impl<'a> UnsafeUnpin for PLRView<'a>
impl<'a> UnwindSafe for PLRView<'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