Struct hilbert_curve_rust::HilbertCurveAlgorithm
source · [−]pub struct HilbertCurveAlgorithm { /* private fields */ }
Implementations
sourceimpl 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 RefUnwindSafe for HilbertCurveAlgorithm
impl Send for HilbertCurveAlgorithm
impl Sync for HilbertCurveAlgorithm
impl Unpin for HilbertCurveAlgorithm
impl UnwindSafe for HilbertCurveAlgorithm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more