pub struct CellKey {
pub level: u8,
pub x: i64,
pub y: i64,
}Expand description
Identität einer Zelle: Ebene (0 = feinste) + Gitterkoordinaten darauf.
Die Koordinaten beziehen sich auf das Raster EIGENER Ebene, nicht auf das Basisraster — sonst bräuchte jede Ebene eigene Bereiche.
Fields§
§level: u8Clipmap-Ebene, 0 ist die feinste.
x: i64Spalte im Ebenen-Raster (darf negativ sein).
y: i64Zeile im Ebenen-Raster.
Implementations§
Trait Implementations§
impl Copy for CellKey
impl Eq for CellKey
Source§impl Ord for CellKey
impl Ord for CellKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CellKey
impl PartialOrd for CellKey
impl StructuralPartialEq for CellKey
Auto Trait Implementations§
impl Freeze for CellKey
impl RefUnwindSafe for CellKey
impl Send for CellKey
impl Sync for CellKey
impl Unpin for CellKey
impl UnsafeUnpin for CellKey
impl UnwindSafe for CellKey
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