pub struct CellListSubcell {
pub cell_id_extension: u8,
pub subcell_latitude: u16,
pub subcell_longitude: u16,
pub subcell_extent_of_latitude: u16,
pub subcell_extent_of_longitude: u16,
}Expand description
One sub-cell within a cell.
Fields§
§cell_id_extension: u88-bit cell_id_extension.
subcell_latitude: u1616-bit subcell_latitude (raw wire value, two’s-complement).
subcell_longitude: u1616-bit subcell_longitude (raw wire value, two’s-complement).
subcell_extent_of_latitude: u1612-bit subcell_extent_of_latitude.
subcell_extent_of_longitude: u1612-bit subcell_extent_of_longitude.
Implementations§
Source§impl CellListSubcell
impl CellListSubcell
Sourcepub fn subcell_latitude_deg(&self) -> f64
pub fn subcell_latitude_deg(&self) -> f64
Decode subcell_latitude to degrees (90°/2^15 scaling).
Sourcepub fn subcell_longitude_deg(&self) -> f64
pub fn subcell_longitude_deg(&self) -> f64
Decode subcell_longitude to degrees (180°/2^15 scaling).
Sourcepub fn subcell_extent_of_latitude_deg(&self) -> f64
pub fn subcell_extent_of_latitude_deg(&self) -> f64
Decode subcell_extent_of_latitude to degrees (90°/2^15 scaling).
Sourcepub fn subcell_extent_of_longitude_deg(&self) -> f64
pub fn subcell_extent_of_longitude_deg(&self) -> f64
Decode subcell_extent_of_longitude to degrees (180°/2^15 scaling).
Trait Implementations§
Source§impl Clone for CellListSubcell
impl Clone for CellListSubcell
Source§fn clone(&self) -> CellListSubcell
fn clone(&self) -> CellListSubcell
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CellListSubcell
Source§impl Debug for CellListSubcell
impl Debug for CellListSubcell
impl Eq for CellListSubcell
Source§impl PartialEq for CellListSubcell
impl PartialEq for CellListSubcell
Source§fn eq(&self, other: &CellListSubcell) -> bool
fn eq(&self, other: &CellListSubcell) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CellListSubcell
impl Serialize for CellListSubcell
impl StructuralPartialEq for CellListSubcell
Auto Trait Implementations§
impl Freeze for CellListSubcell
impl RefUnwindSafe for CellListSubcell
impl Send for CellListSubcell
impl Sync for CellListSubcell
impl Unpin for CellListSubcell
impl UnsafeUnpin for CellListSubcell
impl UnwindSafe for CellListSubcell
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