pub struct Component {
pub bx: usize,
pub by: usize,
pub bw: usize,
pub bh: usize,
pub mask: Vec<bool>,
pub dynamic: Vec<bool>,
pub best: Option<(usize, usize, usize)>,
}Expand description
A connected set of dynamic blocks (plus one block of margin) that must come from one frame.
Fields§
§bx: usize§by: usize§bw: usize§bh: usize§mask: Vec<bool>§dynamic: Vec<bool>Blocks that really change (the rest is the static margin, which a frame must show as the consensus does).
best: Option<(usize, usize, usize)>Best cover so far: (covers nearly all, untainted, latest frame), or (0, 0, whole blocks covered).
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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