pub struct PixelDataSubBlock<'a> {
pub data_type: DataType,
pub data: &'a [u8],
}Expand description
A pixel-data sub-block (Table 20).
Fields§
§data_type: DataTypeThe data_type.
data: &'a [u8]The payload data following the data_type byte. For code strings this is the entire RLE token stream including the end-of-string marker and byte-alignment stuffing. For map tables this is the fixed-size table data.
Implementations§
Source§impl<'a> PixelDataSubBlock<'a>
impl<'a> PixelDataSubBlock<'a>
Sourcepub fn runs(&self) -> Option<PixelRunIter<'a>>
pub fn runs(&self) -> Option<PixelRunIter<'a>>
Decode this sub-block’s pixel runs (Tables 22-26), if it is a
2/4/8-bit pixel-data code string — None for a map-table or
end-of-line sub-block, neither of which is an RLE token stream.
Yields typed PixelRuns instead of exposing data as raw RLE
bytes for the caller to decode itself (#1108/DS-W5). data (the
undecoded token stream, including any trailing byte-alignment
stuffing) is kept as-is alongside this, since round-tripping the
segment byte-exact depends on preserving it verbatim.
Trait Implementations§
Source§impl<'a> Clone for PixelDataSubBlock<'a>
impl<'a> Clone for PixelDataSubBlock<'a>
Source§impl<'a> Debug for PixelDataSubBlock<'a>
impl<'a> Debug for PixelDataSubBlock<'a>
impl<'a> Eq for PixelDataSubBlock<'a>
Source§impl<'a> PartialEq for PixelDataSubBlock<'a>
impl<'a> PartialEq for PixelDataSubBlock<'a>
Source§impl<'a> Serialize for PixelDataSubBlock<'a>
Available on crate feature serde only.
impl<'a> Serialize for PixelDataSubBlock<'a>
Available on crate feature
serde only.impl<'a> StructuralPartialEq for PixelDataSubBlock<'a>
Auto Trait Implementations§
impl<'a> Forget for PixelDataSubBlock<'a>
impl<'a> Freeze for PixelDataSubBlock<'a>
impl<'a> RefUnwindSafe for PixelDataSubBlock<'a>
impl<'a> Send for PixelDataSubBlock<'a>
impl<'a> Sync for PixelDataSubBlock<'a>
impl<'a> Unpin for PixelDataSubBlock<'a>
impl<'a> UnsafeUnpin for PixelDataSubBlock<'a>
impl<'a> UnwindSafe for PixelDataSubBlock<'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