pub struct Scan<F: Read + Seek> {
pub parser: Parser<F>,
pub table: ScanTable,
}
Fields§
§parser: Parser<F>
§table: ScanTable
Implementations§
Source§impl<F> Scan<F>
impl<F> Scan<F>
pub fn new(parser: Parser<F>) -> Self
pub fn from_table(parser: Parser<F>, table: ScanTable) -> Self
pub fn scan(&mut self, start: u64, end: u64) -> Result<(), Error>
pub fn get_node_blob_offsets( &self, ) -> impl Iterator<Item = (u64, usize, usize)> + '_
pub fn get_node_blob_offsets_for_id( &mut self, id: i64, ) -> Vec<(u64, usize, usize)>
pub fn get_node(&mut self, id: i64) -> Result<Option<Node>, Error>
pub fn get_way_blob_offsets( &mut self, ) -> impl Iterator<Item = (u64, usize, usize)> + '_
pub fn get_way_blob_offsets_for_id( &mut self, id: i64, ) -> Vec<(u64, usize, usize)>
pub fn get_way(&mut self, id: i64) -> Result<Option<Way>, Error>
pub fn get_relation_blob_offsets( &mut self, ) -> impl Iterator<Item = (u64, usize, usize)> + '_
pub fn get_relation_blob_offsets_for_id( &mut self, id: i64, ) -> Vec<(u64, usize, usize)>
pub fn get_relation(&mut self, id: i64) -> Result<Option<Relation>, Error>
Auto Trait Implementations§
impl<F> Freeze for Scan<F>
impl<F> RefUnwindSafe for Scan<F>where
F: RefUnwindSafe,
impl<F> Send for Scan<F>where
F: Send,
impl<F> Sync for Scan<F>where
F: Sync,
impl<F> Unpin for Scan<F>
impl<F> UnwindSafe for Scan<F>where
F: UnwindSafe,
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