#[non_exhaustive]pub enum ObjectDataPayload<'a> {
InterlacedPixels(InterlacedPixelsData<'a>),
Characters {
number_of_codes: u8,
character_codes: Vec<u16>,
},
ProgressivePixels(ProgressivePixelBlock<'a>),
Reserved {
coding_method: u8,
data: &'a [u8],
},
}Expand description
Object data payload variants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InterlacedPixels(InterlacedPixelsData<'a>)
Interlaced/bitmap pixel data.
Characters
Character string.
Fields
ProgressivePixels(ProgressivePixelBlock<'a>)
Progressive pixel block (zlib-compressed).
Reserved
Reserved coding method — raw data preserved.
Trait Implementations§
Source§impl<'a> Clone for ObjectDataPayload<'a>
impl<'a> Clone for ObjectDataPayload<'a>
Source§fn clone(&self) -> ObjectDataPayload<'a>
fn clone(&self) -> ObjectDataPayload<'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 ObjectDataPayload<'a>
impl<'a> Debug for ObjectDataPayload<'a>
impl<'a> Eq for ObjectDataPayload<'a>
Source§impl<'a> PartialEq for ObjectDataPayload<'a>
impl<'a> PartialEq for ObjectDataPayload<'a>
Source§fn eq(&self, other: &ObjectDataPayload<'a>) -> bool
fn eq(&self, other: &ObjectDataPayload<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for ObjectDataPayload<'a>
impl<'a> Serialize for ObjectDataPayload<'a>
impl<'a> StructuralPartialEq for ObjectDataPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for ObjectDataPayload<'a>
impl<'a> RefUnwindSafe for ObjectDataPayload<'a>
impl<'a> Send for ObjectDataPayload<'a>
impl<'a> Sync for ObjectDataPayload<'a>
impl<'a> Unpin for ObjectDataPayload<'a>
impl<'a> UnsafeUnpin for ObjectDataPayload<'a>
impl<'a> UnwindSafe for ObjectDataPayload<'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