pub enum ImageIconBody<'a> {
First(ImageIconFirst<'a>),
Continuation {
icon_data: &'a [u8],
},
}Expand description
First-segment metadata vs. continuation payload (keyed by descriptor_number == 0).
Variants§
First(ImageIconFirst<'a>)
descriptor_number == 0: icon metadata + first payload chunk.
Continuation
descriptor_number != 0: a continuation icon_data chunk (length-prefixed).
Trait Implementations§
Source§impl<'a> Clone for ImageIconBody<'a>
impl<'a> Clone for ImageIconBody<'a>
Source§fn clone(&self) -> ImageIconBody<'a>
fn clone(&self) -> ImageIconBody<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ImageIconBody<'a>
impl<'a> Debug for ImageIconBody<'a>
impl<'a> Eq for ImageIconBody<'a>
Source§impl<'a> PartialEq for ImageIconBody<'a>
impl<'a> PartialEq for ImageIconBody<'a>
Source§fn eq(&self, other: &ImageIconBody<'a>) -> bool
fn eq(&self, other: &ImageIconBody<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for ImageIconBody<'a>
impl<'a> Serialize for ImageIconBody<'a>
impl<'a> StructuralPartialEq for ImageIconBody<'a>
Source§impl<'a> Yokeable<'a> for ImageIconBody<'static>
impl<'a> Yokeable<'a> for ImageIconBody<'static>
Source§type Output = ImageIconBody<'a>
type Output = ImageIconBody<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for ImageIconBody<'a>
impl<'a> RefUnwindSafe for ImageIconBody<'a>
impl<'a> Send for ImageIconBody<'a>
impl<'a> Sync for ImageIconBody<'a>
impl<'a> Unpin for ImageIconBody<'a>
impl<'a> UnsafeUnpin for ImageIconBody<'a>
impl<'a> UnwindSafe for ImageIconBody<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more