pub struct RawUserRecord<'a> {
pub record_type: UserRecordType,
pub endian: Endianness,
pub misc: u16,
pub data: RawData<'a>,
}
Expand description
A raw user record.
Can be turned into a parsed UserRecord
using RawUserRecord::parse
.
Fields§
§record_type: UserRecordType
§endian: Endianness
§misc: u16
§data: RawData<'a>
Implementations§
Source§impl<'a> RawUserRecord<'a>
impl<'a> RawUserRecord<'a>
pub fn parse(&self) -> Result<UserRecord<'a>, Error>
pub fn parse_impl<T: ByteOrder>(&self) -> Result<UserRecord<'a>, Error>
Trait Implementations§
Source§impl<'a> Clone for RawUserRecord<'a>
impl<'a> Clone for RawUserRecord<'a>
Source§fn clone(&self) -> RawUserRecord<'a>
fn clone(&self) -> RawUserRecord<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for RawUserRecord<'a>
impl<'a> RefUnwindSafe for RawUserRecord<'a>
impl<'a> Send for RawUserRecord<'a>
impl<'a> Sync for RawUserRecord<'a>
impl<'a> Unpin for RawUserRecord<'a>
impl<'a> UnwindSafe for RawUserRecord<'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