#[repr(C)]
pub struct WebPPicture {
Show 30 fields pub use_argb: c_int, pub colorspace: WebPEncCSP, pub width: c_int, pub height: c_int, pub y: *mut u8, pub u: *mut u8, pub v: *mut u8, pub y_stride: c_int, pub uv_stride: c_int, pub a: *mut u8, pub a_stride: c_int, pub pad1: [u32; 2], pub argb: *mut u32, pub argb_stride: c_int, pub pad2: [u32; 3], pub writer: WebPWriterFunction, pub custom_ptr: *mut c_void, pub extra_info_type: c_int, pub extra_info: *mut u8, pub stats: *mut WebPAuxStats, pub error_code: WebPEncodingError, pub progress_hook: WebPProgressHook, pub user_data: *mut c_void, pub pad3: [u32; 3], pub pad4: *mut u8, pub pad5: *mut u8, pub pad6: [u32; 8], pub memory_: *mut c_void, pub memory_argb_: *mut c_void, pub pad7: [*mut c_void; 2],
}

Fields§

§use_argb: c_int§colorspace: WebPEncCSP§width: c_int§height: c_int§y: *mut u8§u: *mut u8§v: *mut u8§y_stride: c_int§uv_stride: c_int§a: *mut u8§a_stride: c_int§pad1: [u32; 2]§argb: *mut u32§argb_stride: c_int§pad2: [u32; 3]§writer: WebPWriterFunction§custom_ptr: *mut c_void§extra_info_type: c_int§extra_info: *mut u8§stats: *mut WebPAuxStats§error_code: WebPEncodingError§progress_hook: WebPProgressHook§user_data: *mut c_void§pad3: [u32; 3]§pad4: *mut u8§pad5: *mut u8§pad6: [u32; 8]§memory_: *mut c_void§memory_argb_: *mut c_void§pad7: [*mut c_void; 2]

Implementations§

source§

impl WebPPicture

source

pub fn new() -> Result<Self, ()>

Trait Implementations§

source§

impl Clone for WebPPicture

source§

fn clone(&self) -> WebPPicture

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for WebPPicture

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for WebPPicture

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.