pub struct BackfillState {
pub filled: [bool; 8],
}Expand description
Per-tile record of which neighbour borders have been backfilled.
Each flag corresponds to one of the eight NEIGHBOR_OFFSETS.
When a flag is true, the border strip for that direction contains
real neighbour data rather than clamped self-data.
Fields§
§filled: [bool; 8]Indexed by the same order as NEIGHBOR_OFFSETS:
[N, S, W, E, NW, NE, SW, SE].
Implementations§
Source§impl BackfillState
impl BackfillState
Trait Implementations§
Source§impl Clone for BackfillState
impl Clone for BackfillState
Source§fn clone(&self) -> BackfillState
fn clone(&self) -> BackfillState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackfillState
impl Debug for BackfillState
Source§impl Default for BackfillState
impl Default for BackfillState
Source§fn default() -> BackfillState
fn default() -> BackfillState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackfillState
impl RefUnwindSafe for BackfillState
impl Send for BackfillState
impl Sync for BackfillState
impl Unpin for BackfillState
impl UnsafeUnpin for BackfillState
impl UnwindSafe for BackfillState
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