Struct EncodedImage

struct EncodedImage { ... }

The newly-created image file + extra info FYI

Fields

avif_file: Vec<u8>

AVIF (HEIF+AV1) encoded image data

color_byte_size: usize

FYI: number of bytes of AV1 payload used for the color

alpha_byte_size: usize

FYI: number of bytes of AV1 payload used for the alpha channel

Implementations

impl Clone for EncodedImage

fn clone(self: &Self) -> EncodedImage

impl Freeze for EncodedImage

impl RefUnwindSafe for EncodedImage

impl Send for EncodedImage

impl Sync for EncodedImage

impl Unpin for EncodedImage

impl UnsafeUnpin for EncodedImage

impl UnwindSafe for EncodedImage

impl<T> Any for EncodedImage

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for EncodedImage

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for EncodedImage

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

impl<T> CloneToUninit for EncodedImage

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for EncodedImage

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for EncodedImage

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for EncodedImage

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for EncodedImage

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

impl<T, U> TryInto for EncodedImage

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