pub fn new(key_indices: &'a [u32], value_indices: &'a [u32], string_table: &'a pbf::StringTable) -> Self {
        TagReader {
            string_table,
            key_indices,
            value_indices,
            idx: 0,
        }
    }
/// Constructs a new `TagReader` from key and value index slices, and a corresponding string table.
///
/// # Examples
///
/// ```no_run
/// use rosm_pbf_reader::{pbf, TagReader};
///
/// fn process_primitive_block(block: pbf::PrimitiveBlock) {
///     for group in &block.primitivegroup {
///         for way in &group.ways {
///             let tags = TagReader::new(&way.keys, &way.vals, &block.stringtable);
///             for (key, value) in tags {
///                 println!("{}: {}", key.unwrap(), value.unwrap());
///             }
///         }
///     }
/// }
Constructs a new `TagReader` from key and value index slices, and a corresponding string table.
Constructs a new ` TagReader ` from key and value index slices and a corresponding string table .
pub fn new(key_indices: &'a [u32], value_indices: &'a [u32], string_table: &'a pbf::StringTable) -> Self {
        TagReader {
            string_table,
            key_indices,
            value_indices,
            idx: 0,
        }
    }
pub fn new ( key_indices : & ' a [ u32 ] , value_indices : & ' a [ u32 ] , string_table : & ' a pbf :: StringTable ) -> Self { TagReader { string_table , key_indices , value_indices , idx : 0 , } }
Constructs a new `TagReader` from key and value index slices, and a corresponding string table.
Constructs a new ` TagReader ` from key and value index slices and a corresponding string table .
key_indices
&'a [u32]
value_indices
&'a [u32]
string_table
&'a pbf::StringTable
key_indices
&'a [u32]
value_indices
&'a [u32]
string_table
&'a pbf::StringTable
examples
```no_run
use rosm_pbf_reader::{pbf, TagReader}.

fn process_primitive_block(block: pbf::PrimitiveBlock) {
for group in &block.primitivegroup {
for way in &group.ways {
let tags = TagReader::new(&way.keys, &way.vals, &block.stringtable);
for (key, value) in tags {
println!("{}: {}", key.unwrap(), value.unwrap());
}
}
}
}
` ` ` no_run use rosm_pbf_reader :: { pbf TagReader } . fn process_primitive_block ( block : pbf :: PrimitiveBlock ) { for group in &block . primitivegroup { for way in &group . ways { let tags = TagReader :: new ( &way . keys &way . vals &block . stringtable ) ; for ( key value ) in tags { println! ( " {} : {} " key . unwrap () value . unwrap () ) ; } } } }