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
IcoFrameusing a pre-encoded PNG or BMPThe
widthandheightmust be between 1 and 256 (inclusive).fn as_png(buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<Self>Construct a new
IcoFrameby encodingbufas a PNGThe
widthandheightmust 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IcoFrame<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IcoFrame<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for IcoFrame<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for IcoFrame<'a>
impl<T> Pointable for IcoFrame<'a>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for IcoFrame<'a>
where
T: ?Sized,
impl<T, U> Into<U> for IcoFrame<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for IcoFrame<'a>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for IcoFrame<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>