Struct osmpbfreader::objects::Tags
source · [−]pub struct Tags(_);
Expand description
Tags represents the features of the objects. See the OpenStreetMap wiki page about tags for more information.
Implementations
Methods from Deref<Target = FlatMap<String, String>>
Returns the number of elements the VecMap
can hold without
reallocating.
Examples
use flat_map::FlatMap;
let map: FlatMap<String, String> = FlatMap::with_capacity(10);
assert!(map.capacity() >= 10);
Return true if the map contains no elements.
Examples
use flat_map::FlatMap;
let mut a = FlatMap::new();
assert!(a.is_empty());
a.insert("1", "a");
assert!(!a.is_empty());
Return Option<&mut V>.
Example
use flat_map::FlatMap;
let mut m = FlatMap::new();
m.insert(1, "foo".to_string());
m.get_mut(&1).unwrap().push_str("bar");
assert_eq!("foobar", m.get_mut(&1).unwrap());
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Tags
impl UnwindSafe for Tags
Blanket Implementations
Mutably borrows from an owned value. Read more