Struct IcoFrame

struct IcoFrame<'a> { ... }

An ICO image entry

Implementations

impl<'a> IcoFrame<'a>

fn with_encoded<impl Into<Cow<'a, [u8]>>: Into<Cow<'a, [u8]>>>(encoded_image: impl Into<Cow<'a, [u8]>>, width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<Self>

Construct a new IcoFrame using a pre-encoded PNG or BMP

The width and height must be between 1 and 256 (inclusive).

fn as_png(buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<Self>

Construct a new IcoFrame by encoding buf as a PNG

The width and height must be between 1 and 256 (inclusive)

impl<'a> Freeze for IcoFrame<'a>

impl<'a> RefUnwindSafe for IcoFrame<'a>

impl<'a> Send for IcoFrame<'a>

impl<'a> Sync for IcoFrame<'a>

impl<'a> Unpin for IcoFrame<'a>

impl<'a> UnsafeUnpin for IcoFrame<'a>

impl<'a> UnwindSafe for IcoFrame<'a>

impl<T> Any for IcoFrame<'a>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for IcoFrame<'a>

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

impl<T> BorrowMut for IcoFrame<'a>

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

impl<T> From for IcoFrame<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for IcoFrame<'a>

unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T, U> Into for IcoFrame<'a>

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 IcoFrame<'a>

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

impl<T, U> TryInto for IcoFrame<'a>

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