Struct rust_stdf::RecordHeader
source · Fields
len: u16
typ: u8
sub: u8
type_code: u64
Implementations
sourceimpl RecordHeader
impl RecordHeader
pub fn new() -> Self
sourcepub fn read_from_bytes(
self,
raw_data: &[u8],
order: &ByteOrder
) -> Result<Self, StdfError>
pub fn read_from_bytes(
self,
raw_data: &[u8],
order: &ByteOrder
) -> Result<Self, StdfError>
Construct a STDF record header from first 4 elements of given byte array, no error would occur even if the header is invalid.
Unless the array size is less than 4, StdfError of
EOF
or Unexpected EOF
will be returned
Trait Implementations
sourceimpl Clone for RecordHeader
impl Clone for RecordHeader
sourcefn clone(&self) -> RecordHeader
fn clone(&self) -> RecordHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RecordHeader
impl Debug for RecordHeader
sourceimpl Default for RecordHeader
impl Default for RecordHeader
sourceimpl PartialEq<RecordHeader> for RecordHeader
impl PartialEq<RecordHeader> for RecordHeader
sourcefn eq(&self, other: &RecordHeader) -> bool
fn eq(&self, other: &RecordHeader) -> bool
impl Copy for RecordHeader
impl Eq for RecordHeader
impl StructuralEq for RecordHeader
impl StructuralPartialEq for RecordHeader
Auto Trait Implementations
impl RefUnwindSafe for RecordHeader
impl Send for RecordHeader
impl Sync for RecordHeader
impl Unpin for RecordHeader
impl UnwindSafe for RecordHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more