Struct dash7_alp::spec::v1_2::operand::file_offset::FileOffset
source · pub struct FileOffset {
pub id: u8,
pub offset: u32,
}
Expand description
Describe the location of some data on the filesystem (file + data offset).
Fields§
§id: u8
§offset: u32
Trait Implementations§
source§impl Clone for FileOffset
impl Clone for FileOffset
source§fn clone(&self) -> FileOffset
fn clone(&self) -> FileOffset
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Codec for FileOffset
impl Codec for FileOffset
type Error = FileOffsetDecodingError
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Computes the number of bytes required to encode the item.
source§unsafe fn encode_in(&self, out: &mut [u8]) -> usize
unsafe fn encode_in(&self, out: &mut [u8]) -> usize
Encode the item into a given byte array. Read more
source§impl Debug for FileOffset
impl Debug for FileOffset
source§impl Display for FileOffset
impl Display for FileOffset
source§impl PartialEq for FileOffset
impl PartialEq for FileOffset
source§fn eq(&self, other: &FileOffset) -> bool
fn eq(&self, other: &FileOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FileOffset
impl StructuralPartialEq for FileOffset
Auto Trait Implementations§
impl Freeze for FileOffset
impl RefUnwindSafe for FileOffset
impl Send for FileOffset
impl Sync for FileOffset
impl Unpin for FileOffset
impl UnwindSafe for FileOffset
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