pub enum MarkerKind {
Soi,
Sof,
Dqt,
Dht,
Dri,
Sos,
Eoi,
App14,
Other(u8),
}Expand description
A category of JPEG marker. Carried in JpegError::UnexpectedMarker and
related variants so callers can branch on marker class without parsing the
raw byte.
Variants§
Soi
Start of image (FFD8).
Sof
Start of frame (any of FFC0..=FFC3).
Dqt
Define quantization table (FFDB).
Dht
Define Huffman table (FFC4).
Dri
Define restart interval (FFDD).
Sos
Start of scan (FFDA).
Eoi
End of image (FFD9).
App14
Adobe APP14 (FFEE).
Other(u8)
Any other marker, raw byte preserved.
Trait Implementations§
Source§impl Clone for MarkerKind
impl Clone for MarkerKind
Source§fn clone(&self) -> MarkerKind
fn clone(&self) -> MarkerKind
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 Copy for MarkerKind
Source§impl Debug for MarkerKind
impl Debug for MarkerKind
impl Eq for MarkerKind
Source§impl PartialEq for MarkerKind
impl PartialEq for MarkerKind
Source§fn eq(&self, other: &MarkerKind) -> bool
fn eq(&self, other: &MarkerKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MarkerKind
Auto Trait Implementations§
impl Freeze for MarkerKind
impl RefUnwindSafe for MarkerKind
impl Send for MarkerKind
impl Sync for MarkerKind
impl Unpin for MarkerKind
impl UnsafeUnpin for MarkerKind
impl UnwindSafe for MarkerKind
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