pub struct MarkerSegment {
pub marker: u8,
pub data: Vec<u8>,
}Expand description
A raw marker segment preserving the original bytes.
Fields§
§marker: u8The marker byte (e.g., 0xDB for DQT). Does NOT include the 0xFF prefix.
data: Vec<u8>The segment data NOT including the marker or the 2-byte length field.
Trait Implementations§
Source§impl Clone for MarkerSegment
impl Clone for MarkerSegment
Source§fn clone(&self) -> MarkerSegment
fn clone(&self) -> MarkerSegment
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MarkerSegment
impl RefUnwindSafe for MarkerSegment
impl Send for MarkerSegment
impl Sync for MarkerSegment
impl Unpin for MarkerSegment
impl UnsafeUnpin for MarkerSegment
impl UnwindSafe for MarkerSegment
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