pub struct ChildTileMask {
pub southwest: bool,
pub southeast: bool,
pub northwest: bool,
pub northeast: bool,
}Expand description
Child-availability mask: one bit per quadrant indicating whether a child tile exists at the next zoom level.
Bit layout (matches the heightmap-1.0 spec):
| Bit | Value | Quadrant |
|---|---|---|
| 0 | 1 | Southwest |
| 1 | 2 | Southeast |
| 2 | 4 | Northwest |
| 3 | 8 | Northeast |
Fields§
§southwest: boolSouthwest child present.
southeast: boolSoutheast child present.
northwest: boolNorthwest child present.
northeast: boolNortheast child present.
Implementations§
Trait Implementations§
Source§impl Clone for ChildTileMask
impl Clone for ChildTileMask
Source§fn clone(&self) -> ChildTileMask
fn clone(&self) -> ChildTileMask
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChildTileMask
impl Debug for ChildTileMask
Source§impl Default for ChildTileMask
impl Default for ChildTileMask
Source§fn default() -> ChildTileMask
fn default() -> ChildTileMask
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChildTileMask
impl PartialEq for ChildTileMask
Source§fn eq(&self, other: &ChildTileMask) -> bool
fn eq(&self, other: &ChildTileMask) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ChildTileMask
impl Eq for ChildTileMask
impl StructuralPartialEq for ChildTileMask
Auto Trait Implementations§
impl Freeze for ChildTileMask
impl RefUnwindSafe for ChildTileMask
impl Send for ChildTileMask
impl Sync for ChildTileMask
impl Unpin for ChildTileMask
impl UnsafeUnpin for ChildTileMask
impl UnwindSafe for ChildTileMask
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