pub struct Way {
pub id: u64,
/* private fields */
}Expand description
Way Class
Fields§
§id: u64The way’s ID
Implementations§
Source§impl Way
impl Way
Sourcepub fn properties(&self, pb: &PrimitiveBlock) -> Properties
pub fn properties(&self, pb: &PrimitiveBlock) -> Properties
Get the properties of the node
Sourcepub fn is_area<T: Reader, _N: KVStore<u64, VectorPoint<MValue>>, N: KVStore<u64, IntermediateNode>, _W: KVStore<u64, WayNodes>, W: KVStore<u64, IntermediateWay>, R: KVStore<u64, IntermediateRelation>>(
&self,
pb: &PrimitiveBlock,
reader: &mut OSMReader<T, _N, N, _W, W, R>,
) -> bool
pub fn is_area<T: Reader, _N: KVStore<u64, VectorPoint<MValue>>, N: KVStore<u64, IntermediateNode>, _W: KVStore<u64, WayNodes>, W: KVStore<u64, IntermediateWay>, R: KVStore<u64, IntermediateRelation>>( &self, pb: &PrimitiveBlock, reader: &mut OSMReader<T, _N, N, _W, W, R>, ) -> bool
Checks if the way is an area based on it’s key-value pairs
Sourcepub fn has_key_value(
&self,
pb: &PrimitiveBlock,
key: &str,
val: Option<&str>,
) -> bool
pub fn has_key_value( &self, pb: &PrimitiveBlock, key: &str, val: Option<&str>, ) -> bool
Checks if the way has a key-value pair (value optional)
Sourcepub fn to_intermediate_feature<T: Reader, _N: KVStore<u64, VectorPoint<MValue>>, N: KVStore<u64, IntermediateNode>, _W: KVStore<u64, WayNodes>, W: KVStore<u64, IntermediateWay>, R: KVStore<u64, IntermediateRelation>>(
&self,
pb: &PrimitiveBlock,
reader: &mut OSMReader<T, _N, N, _W, W, R>,
) -> Option<IntermediateWay>
pub fn to_intermediate_feature<T: Reader, _N: KVStore<u64, VectorPoint<MValue>>, N: KVStore<u64, IntermediateNode>, _W: KVStore<u64, WayNodes>, W: KVStore<u64, IntermediateWay>, R: KVStore<u64, IntermediateRelation>>( &self, pb: &PrimitiveBlock, reader: &mut OSMReader<T, _N, N, _W, W, R>, ) -> Option<IntermediateWay>
Converts the way to an intermediate vector feature (way’s nodes have not been parsed)
§Returns
The way as an intermediate vector feature
Trait Implementations§
Source§impl OSMFilterable for Way
impl OSMFilterable for Way
Source§fn is_filterable<T: Reader, _N: KVStore<u64, VectorPoint<MValue>>, N: KVStore<u64, IntermediateNode>, _W: KVStore<u64, WayNodes>, W: KVStore<u64, IntermediateWay>, R: KVStore<u64, IntermediateRelation>>(
&self,
pb: &PrimitiveBlock,
reader: &mut OSMReader<T, _N, N, _W, W, R>,
) -> bool
fn is_filterable<T: Reader, _N: KVStore<u64, VectorPoint<MValue>>, N: KVStore<u64, IntermediateNode>, _W: KVStore<u64, WayNodes>, W: KVStore<u64, IntermediateWay>, R: KVStore<u64, IntermediateRelation>>( &self, pb: &PrimitiveBlock, reader: &mut OSMReader<T, _N, N, _W, W, R>, ) -> bool
Check if the object is filterable
impl StructuralPartialEq for Way
Auto Trait Implementations§
impl Freeze for Way
impl RefUnwindSafe for Way
impl Send for Way
impl Sync for Way
impl Unpin for Way
impl UnwindSafe for Way
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().