pub struct GeoHashFixed { /* private fields */ }Expand description
A geohash encoded as a fixed-size byte array.
Supports precision 1–12 (matching the standard range).
Implementations§
Source§impl GeoHashFixed
impl GeoHashFixed
Sourcepub fn encode(lat: f64, lon: f64, precision: u8) -> Self
pub fn encode(lat: f64, lon: f64, precision: u8) -> Self
Encodes a (latitude, longitude) pair to the given precision (1–12).
If precision is outside 1–12, precision is clamped to the valid range.
Trait Implementations§
Source§impl Clone for GeoHashFixed
impl Clone for GeoHashFixed
Source§fn clone(&self) -> GeoHashFixed
fn clone(&self) -> GeoHashFixed
Returns a duplicate of the value. Read more
1.0.0 · 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 GeoHashFixed
impl Debug for GeoHashFixed
Source§impl PartialEq for GeoHashFixed
impl PartialEq for GeoHashFixed
impl Copy for GeoHashFixed
impl Eq for GeoHashFixed
impl StructuralPartialEq for GeoHashFixed
Auto Trait Implementations§
impl Freeze for GeoHashFixed
impl RefUnwindSafe for GeoHashFixed
impl Send for GeoHashFixed
impl Sync for GeoHashFixed
impl Unpin for GeoHashFixed
impl UnsafeUnpin for GeoHashFixed
impl UnwindSafe for GeoHashFixed
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