pub struct Run {
pub length: u32,
pub value: u8,
}Expand description
One maximal run of equal pixels, in row-major order.
A run list is a mask’s canonical decomposition: adjacent runs never carry the
same value and the lengths sum to the layer’s pixel count. A rasterizer that
produces runs hands them to encode_runs directly, so the pixel mask a
layer decodes to never has to exist.
Fields§
§length: u32How many pixels the run covers. At least 1.
value: u8The value every pixel of the run carries.
Implementations§
Trait Implementations§
impl Copy for Run
impl Eq for Run
impl StructuralPartialEq for Run
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnsafeUnpin for Run
impl UnwindSafe for Run
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