pub struct HilbertCurveAlgorithm { /* private fields */ }
Implementations§
Source§impl HilbertCurveAlgorithm
impl HilbertCurveAlgorithm
pub fn new(order: u16) -> Self
pub fn index_to_point(&self, index: u32) -> CoordinateValue
pub fn point_to_index(&self, point: CoordinateValue) -> u32
pub fn offset_point( &self, point: CoordinateValue, projection_width: u32, ) -> CoordinateValue
pub fn deoffset_point( &self, point: CoordinateValue, projection_width: u32, ) -> CoordinateValue
Auto Trait Implementations§
impl Freeze for HilbertCurveAlgorithm
impl RefUnwindSafe for HilbertCurveAlgorithm
impl Send for HilbertCurveAlgorithm
impl Sync for HilbertCurveAlgorithm
impl Unpin for HilbertCurveAlgorithm
impl UnwindSafe for HilbertCurveAlgorithm
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