pub struct JpegSegment<'a> {
pub marker: u8,
pub marker_offset: usize,
pub payload_offset: usize,
pub payload: &'a [u8],
}Expand description
One marker segment in a JPEG byte stream.
Fields§
§marker: u8Raw marker byte after the 0xff prefix.
marker_offset: usizeOffset of the marker prefix byte.
payload_offset: usizeOffset of the segment payload. Standalone markers use the byte after the marker.
payload: &'a [u8]Segment payload excluding marker and length bytes.
Trait Implementations§
Source§impl<'a> Clone for JpegSegment<'a>
impl<'a> Clone for JpegSegment<'a>
Source§fn clone(&self) -> JpegSegment<'a>
fn clone(&self) -> JpegSegment<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for JpegSegment<'a>
Source§impl<'a> Debug for JpegSegment<'a>
impl<'a> Debug for JpegSegment<'a>
impl<'a> Eq for JpegSegment<'a>
Source§impl<'a> PartialEq for JpegSegment<'a>
impl<'a> PartialEq for JpegSegment<'a>
impl<'a> StructuralPartialEq for JpegSegment<'a>
Auto Trait Implementations§
impl<'a> Freeze for JpegSegment<'a>
impl<'a> RefUnwindSafe for JpegSegment<'a>
impl<'a> Send for JpegSegment<'a>
impl<'a> Sync for JpegSegment<'a>
impl<'a> Unpin for JpegSegment<'a>
impl<'a> UnsafeUnpin for JpegSegment<'a>
impl<'a> UnwindSafe for JpegSegment<'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
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