Struct osm_proto_rs::osmformat::PrimitiveBlock
[−]
[src]
pub struct PrimitiveBlock { pub stringtable: StringTable, pub primitivegroup: Vec<PrimitiveGroup>, pub granularity: Option<i32>, pub lat_offset: Option<i64>, pub lon_offset: Option<i64>, pub date_granularity: Option<i32>, }
Fields
stringtable: StringTable
primitivegroup: Vec<PrimitiveGroup>
granularity: Option<i32>
Granularity, units of nanodegrees, used to store coordinates in this block
lat_offset: Option<i64>
Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.
lon_offset: Option<i64>
date_granularity: Option<i32>
Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
Methods
impl PrimitiveBlock
[src]
fn granularity(&mut self) -> &mut i32
fn date_granularity(&mut self) -> &mut i32
fn lat_offset(&mut self) -> &mut i64
fn lon_offset(&mut self) -> &mut i64
Trait Implementations
impl Clone for PrimitiveBlock
[src]
fn clone(&self) -> PrimitiveBlock
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for PrimitiveBlock
[src]
impl PartialEq for PrimitiveBlock
[src]
fn eq(&self, __arg_0: &PrimitiveBlock) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PrimitiveBlock) -> bool
This method tests for !=
.