pub struct ScanTable {
pub nodes: IntervalTree<i64>,
pub ways: IntervalTree<i64>,
pub relations: IntervalTree<i64>,
pub node_interval_offsets: HashMap<(Bound<i64>, Bound<i64>), (u64, usize, usize)>,
pub way_interval_offsets: HashMap<(Bound<i64>, Bound<i64>), (u64, usize, usize)>,
pub relation_interval_offsets: HashMap<(Bound<i64>, Bound<i64>), (u64, usize, usize)>,
}
Fields§
§nodes: IntervalTree<i64>
§ways: IntervalTree<i64>
§relations: IntervalTree<i64>
§node_interval_offsets: HashMap<(Bound<i64>, Bound<i64>), (u64, usize, usize)>
§way_interval_offsets: HashMap<(Bound<i64>, Bound<i64>), (u64, usize, usize)>
§relation_interval_offsets: HashMap<(Bound<i64>, Bound<i64>), (u64, usize, usize)>
Implementations§
Source§impl ScanTable
impl ScanTable
pub fn extend(&mut self, other: &ScanTable)
pub fn get_node_blob_offsets( &self, ) -> impl Iterator<Item = (u64, usize, usize)> + '_
pub fn get_node_blob_offsets_for_id(&self, id: i64) -> Vec<(u64, usize, usize)>
pub fn get_way_blob_offsets( &self, ) -> impl Iterator<Item = (u64, usize, usize)> + '_
pub fn get_way_blob_offsets_for_id(&self, id: i64) -> Vec<(u64, usize, usize)>
pub fn get_relation_blob_offsets( &self, ) -> impl Iterator<Item = (u64, usize, usize)> + '_
pub fn get_relation_blob_offsets_for_id( &self, id: i64, ) -> Vec<(u64, usize, usize)>
Trait Implementations§
Source§impl CountBytes for ScanTable
impl CountBytes for ScanTable
Source§fn count_bytes(&self) -> usize
fn count_bytes(&self) -> usize
Return the number of bytes that the serialization would require.
Source§fn count_from_bytes(_buf: &[u8]) -> Result<usize, Error>
fn count_from_bytes(_buf: &[u8]) -> Result<usize, Error>
Return how many bytes from
buf
would be required to deserialize Self.Source§fn count_from_bytes_more(
buf: &[u8],
) -> Result<Option<usize>, Box<dyn Error + Send + Sync>>
fn count_from_bytes_more( buf: &[u8], ) -> Result<Option<usize>, Box<dyn Error + Send + Sync>>
Return how many bytes from
buf
would be required to deserialize Self,
where if there are not enough bytes in buf
to know how many bytes would
be required, you will receive None
or otherwise Some(nbytes)
.Auto Trait Implementations§
impl Freeze for ScanTable
impl RefUnwindSafe for ScanTable
impl Send for ScanTable
impl Sync for ScanTable
impl Unpin for ScanTable
impl UnwindSafe for ScanTable
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