Enum libwebp::WEBP_CSP_MODE
source · pub enum WEBP_CSP_MODE {
Show 13 variants
MODE_RGB,
MODE_RGBA,
MODE_BGR,
MODE_BGRA,
MODE_ARGB,
MODE_RGBA_4444,
MODE_RGB_565,
MODE_rgbA,
MODE_bgrA,
MODE_Argb,
MODE_rgbA_4444,
MODE_YUV,
MODE_YUVA,
}
Variants§
MODE_RGB
MODE_RGBA
MODE_BGR
MODE_BGRA
MODE_ARGB
MODE_RGBA_4444
MODE_RGB_565
MODE_rgbA
A variant of MODE_RGBA
with premultiplied alpha
MODE_bgrA
A variant of MODE_BGRA
with premultiplied alpha
MODE_Argb
A variant of MODE_ARGB
with premultiplied alpha
MODE_rgbA_4444
A variant of MODE_RGBA_4444
with premultiplied alpha
MODE_YUV
MODE_YUVA
Implementations§
source§impl WEBP_CSP_MODE
impl WEBP_CSP_MODE
pub fn from_raw(raw: WEBP_CSP_MODE) -> Self
pub fn into_raw(self) -> WEBP_CSP_MODE
Trait Implementations§
source§impl Clone for WEBP_CSP_MODE
impl Clone for WEBP_CSP_MODE
source§fn clone(&self) -> WEBP_CSP_MODE
fn clone(&self) -> WEBP_CSP_MODE
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 WEBP_CSP_MODE
impl Debug for WEBP_CSP_MODE
source§impl Hash for WEBP_CSP_MODE
impl Hash for WEBP_CSP_MODE
source§impl Ord for WEBP_CSP_MODE
impl Ord for WEBP_CSP_MODE
source§fn cmp(&self, other: &WEBP_CSP_MODE) -> Ordering
fn cmp(&self, other: &WEBP_CSP_MODE) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<WEBP_CSP_MODE> for WEBP_CSP_MODE
impl PartialEq<WEBP_CSP_MODE> for WEBP_CSP_MODE
source§fn eq(&self, other: &WEBP_CSP_MODE) -> bool
fn eq(&self, other: &WEBP_CSP_MODE) -> bool
source§impl PartialOrd<WEBP_CSP_MODE> for WEBP_CSP_MODE
impl PartialOrd<WEBP_CSP_MODE> for WEBP_CSP_MODE
source§fn partial_cmp(&self, other: &WEBP_CSP_MODE) -> Option<Ordering>
fn partial_cmp(&self, other: &WEBP_CSP_MODE) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more