pub struct Way<'a> { /* private fields */ }Expand description
A reader for an OSM Way stored in the ways table, including its tags, metadata, and list of constituent Nodes.
Implementations§
Source§impl<'a> Way<'a>
impl<'a> Way<'a>
Sourcepub fn tag(&'a self, key: &str) -> Option<&'a str>
pub fn tag(&'a self, key: &str) -> Option<&'a str>
Get the value of a single tag key. Returns None if the element does not have the given tag.
Returns an iterator of key-value pairs for all of the tags on this element.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Way<'a>
impl<'a> !RefUnwindSafe for Way<'a>
impl<'a> Send for Way<'a>
impl<'a> !Sync for Way<'a>
impl<'a> Unpin for Way<'a>
impl<'a> UnwindSafe for Way<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more