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
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)
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) -> TReturns the argument unchanged.
impl<T> Pointable for IcoFrame<'a>
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, U> Into for IcoFrame<'a>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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>