pub struct PSRView<'a> { /* private fields */ }Expand description
Zero-copy view over the field data of a PSR 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 PSR with Self::to_owned.
Implementations§
Source§impl<'a> PSRView<'a>
impl<'a> PSRView<'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 psr_indx(&self) -> U2
pub fn psr_nam(&self) -> CnRef<'a>
pub fn opt_flg(&self) -> B1
pub fn totp_cnt(&self) -> U2
pub fn locp_cnt(&self) -> U2
pub fn pat_bgn(&self) -> KxU8
pub fn pat_end(&self) -> KxU8
pub fn pat_file(&self) -> KxCnRef<'a>
pub fn pat_lbl(&self) -> KxCnRef<'a>
pub fn file_uid(&self) -> KxCnRef<'a>
pub fn atpg_dsc(&self) -> KxCnRef<'a>
pub fn src_id(&self) -> KxCnRef<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PSRView<'a>
impl<'a> RefUnwindSafe for PSRView<'a>
impl<'a> Send for PSRView<'a>
impl<'a> Sync for PSRView<'a>
impl<'a> Unpin for PSRView<'a>
impl<'a> UnsafeUnpin for PSRView<'a>
impl<'a> UnwindSafe for PSRView<'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