pub struct NeighborAvailability {
pub top: bool,
pub left: bool,
pub top_left: bool,
pub top_right: bool,
pub bottom_left: bool,
}Expand description
Neighbor availability flags.
Fields§
§top: boolTop neighbor is available.
left: boolLeft neighbor is available.
top_left: boolTop-left neighbor is available.
top_right: boolTop-right neighbor is available.
bottom_left: boolBottom-left neighbor is available.
Implementations§
Trait Implementations§
Source§impl Clone for NeighborAvailability
impl Clone for NeighborAvailability
Source§fn clone(&self) -> NeighborAvailability
fn clone(&self) -> NeighborAvailability
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 NeighborAvailability
impl Debug for NeighborAvailability
Source§impl Default for NeighborAvailability
impl Default for NeighborAvailability
Source§fn default() -> NeighborAvailability
fn default() -> NeighborAvailability
Returns the “default value” for a type. Read more
impl Copy for NeighborAvailability
Auto Trait Implementations§
impl Freeze for NeighborAvailability
impl RefUnwindSafe for NeighborAvailability
impl Send for NeighborAvailability
impl Sync for NeighborAvailability
impl Unpin for NeighborAvailability
impl UnsafeUnpin for NeighborAvailability
impl UnwindSafe for NeighborAvailability
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