Struct osmpbfreader::objects::Tags [] [src]

pub struct Tags(_);

Tags represents the features of the objects. See the OpenStreetMap wiki page about tags for more information.

Methods

impl Tags
[src]

Creates a new, empty Tags object.

Returns if contains the tag (key, value).

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

impl Debug for Tags
[src]

Formats the value using the given formatter.

impl Clone for Tags
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Tags
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Tags
[src]

impl PartialOrd for Tags
[src]

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Tags
[src]

This method returns an Ordering between self and other. Read more

impl Hash for Tags
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Deref for Tags
[src]

The resulting type after dereferencing

The method called to dereference a value

impl DerefMut for Tags
[src]

The method called to mutably dereference a value

impl FromIterator<(String, String)> for Tags
[src]

Creates a value from an iterator. Read more