Struct ScanTable

Source
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

Source

pub fn extend(&mut self, other: &ScanTable)

Source

pub fn get_node_blob_offsets( &self, ) -> impl Iterator<Item = (u64, usize, usize)> + '_

Source

pub fn get_node_blob_offsets_for_id(&self, id: i64) -> Vec<(u64, usize, usize)>

Source

pub fn get_way_blob_offsets( &self, ) -> impl Iterator<Item = (u64, usize, usize)> + '_

Source

pub fn get_way_blob_offsets_for_id(&self, id: i64) -> Vec<(u64, usize, usize)>

Source

pub fn get_relation_blob_offsets( &self, ) -> impl Iterator<Item = (u64, usize, usize)> + '_

Source

pub fn get_relation_blob_offsets_for_id( &self, id: i64, ) -> Vec<(u64, usize, usize)>

Trait Implementations§

Source§

impl Clone for ScanTable

Source§

fn clone(&self) -> ScanTable

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CountBytes for ScanTable

Source§

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>

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>>

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).
Source§

impl Debug for ScanTable

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ScanTable

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl FromBytes for ScanTable

Source§

fn from_bytes(buf: &[u8]) -> Result<(usize, Self), Error>

Read data from src in order to create an instance Self. The usize in the Result is the number of bytes read from src.
Source§

impl ToBytes for ScanTable

Source§

fn to_bytes(&self) -> Result<Vec<u8>, Error>

Serialize into a newly-allocated byte vector.
Source§

fn write_bytes(&self, buf: &mut [u8]) -> Result<usize, Error>

Serialize into an existing mutable byte slice. The usize Result contains how many bytes were written to dst.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V