Struct IcoFrame

pub struct IcoFrame<'a> { /* private fields */ }

An ICO image entry

Implementations

impl<'a> IcoFrame<'a>

fn with_encoded(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)

Auto Trait Implementations

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>

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for IcoFrame<'a> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for IcoFrame<'a> where ST: ?Sized, DT: ?Sized,

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

impl<T> Borrow<T> for IcoFrame<'a> where T: ?Sized,

impl<T> BorrowMut<T> for IcoFrame<'a> where T: ?Sized,

impl<T> From<T> for IcoFrame<'a>

impl<T> IntoEither for IcoFrame<'a>

impl<T> Pointable for IcoFrame<'a>

impl<T> Read<Exclusive, BecauseExclusive> for IcoFrame<'a> where T: ?Sized,

impl<T, U> Into<U> for IcoFrame<'a> where U: From<T>,

impl<T, U> TryFrom<U> for IcoFrame<'a> where U: Into<T>,

impl<T, U> TryInto<U> for IcoFrame<'a> where U: TryFrom<T>,