pub(crate) enum WebPRiffChunk {
RIFF,
WEBP,
VP8,
VP8L,
VP8X,
ANIM,
ANMF,
ALPH,
ICCP,
EXIF,
XMP,
}
Expand description
All possible RIFF chunks in a WebP image file
Variants§
Implementations§
source§impl WebPRiffChunk
impl WebPRiffChunk
pub(crate) fn from_fourcc(chunk_fourcc: [u8; 4]) -> ImageResult<Self>
pub(crate) fn to_fourcc(&self) -> [u8; 4]
Trait Implementations§
source§impl Clone for WebPRiffChunk
impl Clone for WebPRiffChunk
source§fn clone(&self) -> WebPRiffChunk
fn clone(&self) -> WebPRiffChunk
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 Debug for WebPRiffChunk
impl Debug for WebPRiffChunk
source§impl PartialEq for WebPRiffChunk
impl PartialEq for WebPRiffChunk
source§fn eq(&self, other: &WebPRiffChunk) -> bool
fn eq(&self, other: &WebPRiffChunk) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WebPRiffChunk
impl StructuralPartialEq for WebPRiffChunk
Auto Trait Implementations§
impl Freeze for WebPRiffChunk
impl RefUnwindSafe for WebPRiffChunk
impl Send for WebPRiffChunk
impl Sync for WebPRiffChunk
impl Unpin for WebPRiffChunk
impl UnwindSafe for WebPRiffChunk
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> 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