pub struct ScreenFixed { /* private fields */ }Expand description
Per-cell evidence over one moving region’s analysis rectangle.
Implementations§
Source§impl ScreenFixed
impl ScreenFixed
Sourcepub fn new(x0: i64, y0: i64, width: usize, height: usize) -> ScreenFixed
pub fn new(x0: i64, y0: i64, width: usize, height: usize) -> ScreenFixed
Cells over the analysis rectangle [x0, x0 + width) × [y0, y0 + height).
Sourcepub fn excludes(&self, x: f64, y: f64) -> bool
pub fn excludes(&self, x: f64, y: f64) -> bool
Whether registration leaves out analysis pixel (x, y).
Sourcepub fn observe(
&mut self,
previous: &[u8],
current: &[u8],
width: usize,
height: usize,
step: (f64, f64),
inside: impl Fn(i64, i64) -> bool,
) -> bool
pub fn observe( &mut self, previous: &[u8], current: &[u8], width: usize, height: usize, step: (f64, f64), inside: impl Fn(i64, i64) -> bool, ) -> bool
Adds one measured step. previous/current are width-wide analysis grays, step the region’s step in
analysis pixels (content at (x, y) now was at (x + step.0, y + step.1) before), inside the region’s
membership of an analysis pixel. Returns whether the set of left-out cells changed.
Auto Trait Implementations§
impl Freeze for ScreenFixed
impl RefUnwindSafe for ScreenFixed
impl Send for ScreenFixed
impl Sync for ScreenFixed
impl Unpin for ScreenFixed
impl UnsafeUnpin for ScreenFixed
impl UnwindSafe for ScreenFixed
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