pub struct PrimitiveBlock<'a> {
pub stringtable: Vec<&'a str>,
pub granularity: u32,
pub lat_offset: i64,
pub lon_offset: i64,
pub date_granularity: u64,
/* private fields */
}Fields§
§stringtable: Vec<&'a str>§granularity: u32§lat_offset: i64§lon_offset: i64§date_granularity: u64Implementations§
Source§impl<'a> PrimitiveBlock<'a>
impl<'a> PrimitiveBlock<'a>
pub fn parse(data: &'a [u8]) -> PrimitiveBlock<'a>
pub fn convert_lat(&self, lat: i64) -> f64
pub fn convert_lon(&self, lon: i64) -> f64
pub fn convert_date(&self, date: u64) -> u64
pub fn primitives(&'a self) -> PrimitivesIterator<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for PrimitiveBlock<'a>
impl<'a> Clone for PrimitiveBlock<'a>
Source§fn clone(&self) -> PrimitiveBlock<'a>
fn clone(&self) -> PrimitiveBlock<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for PrimitiveBlock<'a>
impl<'a> RefUnwindSafe for PrimitiveBlock<'a>
impl<'a> Send for PrimitiveBlock<'a>
impl<'a> Sync for PrimitiveBlock<'a>
impl<'a> Unpin for PrimitiveBlock<'a>
impl<'a> UnsafeUnpin for PrimitiveBlock<'a>
impl<'a> UnwindSafe for PrimitiveBlock<'a>
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