pub struct Tile {
pub key: TileKey,
pub pixels: Vec<u8>,
pub coverage: Vec<u8>,
pub provisional: Vec<u8>,
pub quality: Vec<u8>,
pub conflicts: Vec<u8>,
pub owner: Vec<u32>,
pub score: Vec<f32>,
pub frozen: Vec<u8>,
pub dirty: bool,
pub existed: bool,
pub touched: Option<f64>,
/* private fields */
}Expand description
One resident tile: RGBA pixels and the side planes kept per pixel (coverage, provisional) and per 16×16 block (quality, conflicts, owner frame + 1, score, frozen).
Fields§
§key: TileKey§pixels: Vec<u8>§coverage: Vec<u8>§provisional: Vec<u8>§quality: Vec<u8>§conflicts: Vec<u8>§owner: Vec<u32>§score: Vec<f32>§frozen: Vec<u8>§dirty: boolWritten since it was last stored.
existed: boolHas a stored copy (it was loaded from one, or stored since).
touched: Option<f64>The host’s timestamp of the last write that dirtied it; None reads as 0.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Tile
Auto Trait Implementations§
impl Freeze for Tile
impl RefUnwindSafe for Tile
impl Send for Tile
impl Sync for Tile
impl Unpin for Tile
impl UnsafeUnpin for Tile
impl UnwindSafe for Tile
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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