pub struct U8Data {
pub offset: u32,
pub count: u32,
}
Expand description
Represents a segment of data, typically used for handling parts of a byte stream.
Attributes:
offset
: Au32
indicating the starting position in a byte stream or array.count
: Au32
denoting the length or the number of elements in the segment starting fromoffset
.
Fields§
§offset: u32
§count: u32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for U8Data
impl<'de> Deserialize<'de> for U8Data
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for U8Data
impl StructuralPartialEq for U8Data
Auto Trait Implementations§
impl Freeze for U8Data
impl RefUnwindSafe for U8Data
impl Send for U8Data
impl Sync for U8Data
impl Unpin for U8Data
impl UnwindSafe for U8Data
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more