enum WebPStatic {
LossyWithAlpha(RgbaImage),
LossyWithoutAlpha(RgbImage),
Lossless(LosslessFrame),
}
Variants§
Implementations§
source§impl WebPStatic
impl WebPStatic
pub(crate) fn from_alpha_lossy( alpha: AlphaChunk, vp8_frame: VP8Frame ) -> ImageResult<WebPStatic>
fn get_predictor( x: usize, y: usize, width: usize, filtering_method: FilteringMethod, image_slice: &[u8] ) -> u8
pub(crate) fn from_lossy(vp8_frame: VP8Frame) -> ImageResult<WebPStatic>
pub(crate) fn fill_buf(&self, buf: &mut [u8])
pub(crate) fn get_buf_size(&self) -> usize
pub(crate) fn color_type(&self) -> ColorType
pub(crate) fn has_alpha(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for WebPStatic
impl Send for WebPStatic
impl Sync for WebPStatic
impl Unpin for WebPStatic
impl UnwindSafe for WebPStatic
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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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