pub struct Lines<'a> {
pub rgba: &'a [u8],
pub width: usize,
pub height: usize,
pub labels: Option<(&'a [u8], u8)>,
pub region: (i64, i64, i64, i64),
pub neighbours: [Option<&'a [u8]>; 2],
pub noise: f64,
}Expand description
One frame of a region and what background_lines compares it with.
Fields§
§rgba: &'a [u8]The frame, RGBA, width × height.
width: usize§height: usize§labels: Option<(&'a [u8], u8)>The atlas label plane and the region’s code; None for a rectangular region (every pixel of the rect is its).
region: (i64, i64, i64, i64)The region’s rect on screen in whole pixels: x, y, width, height.
neighbours: [Option<&'a [u8]>; 2]The neighbouring frames whose placement differs from this frame’s: a pixel equal to one of them at the same screen position stays put on screen while the page moves.
noise: f64The source’s per-channel decode noise.
Auto Trait Implementations§
impl<'a> Freeze for Lines<'a>
impl<'a> RefUnwindSafe for Lines<'a>
impl<'a> Send for Lines<'a>
impl<'a> Sync for Lines<'a>
impl<'a> Unpin for Lines<'a>
impl<'a> UnsafeUnpin for Lines<'a>
impl<'a> UnwindSafe for Lines<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more