pub struct Z2 { /* private fields */ }Expand description
A two dimensional Z-Order curve.
Implementations§
Trait Implementations§
impl Eq for Z2
Source§impl Ord for Z2
impl Ord for Z2
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 Z2
impl PartialOrd for Z2
impl StructuralPartialEq for Z2
Source§impl ZN for Z2
impl ZN for Z2
Source§const DIMENSIONS: u64 = 2
const DIMENSIONS: u64 = 2
Number of Dimensions.
Source§const BITS_PER_DIMENSION: u32 = 31
const BITS_PER_DIMENSION: u32 = 31
Number of Bits per Dimension.
Source§const TOTAL_BITS: u64
const TOTAL_BITS: u64
Total bits used. Usually bits_per_dim * dim.
Source§fn split(value: u32) -> u64
fn split(value: u32) -> u64
Insert (DIMENSIONS - 1) zeros between each bit to create a zvalue
from a single dimension. Read more
Source§fn combine(z: u64) -> u32
fn combine(z: u64) -> u32
Combine every (Dimensions - 1) bits to re-create a single dimension. Opposite
of split.
Source§fn contains(range: ZRange, value: u64) -> bool
fn contains(range: ZRange, value: u64) -> bool
Tests whether range contains the value. Considers User space.
Source§fn overlaps(range: ZRange, value: ZRange) -> bool
fn overlaps(range: ZRange, value: ZRange) -> bool
Test whether range and value overlap. Considers User space. Read more
Source§fn contains_value(range: ZRange, value: ZRange) -> bool
fn contains_value(range: ZRange, value: ZRange) -> bool
Test whether range contains the value. Considers User space.
Source§fn zranges_default<Z: ZN>(zbounds: &[ZRange]) -> Vec<Box<dyn IndexRange>>
fn zranges_default<Z: ZN>(zbounds: &[ZRange]) -> Vec<Box<dyn IndexRange>>
Compute the Z-index ranges that cover zbounds (Default values: precision = 64,
max_recurse = 7, max_ranges = usize::MAX).Auto Trait Implementations§
impl Freeze for Z2
impl RefUnwindSafe for Z2
impl Send for Z2
impl Sync for Z2
impl Unpin for Z2
impl UnsafeUnpin for Z2
impl UnwindSafe for Z2
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