Enum osmpbfreader::objects::OsmId
source · pub enum OsmId {
Node(NodeId),
Way(WayId),
Relation(RelationId),
}
Expand description
An OpenStreetMap object identifier
Variants§
Node(NodeId)
The identifier of a node
Way(WayId)
The identifier of a way
Relation(RelationId)
The identifier of a relation
Implementations§
source§impl OsmId
impl OsmId
Trait Implementations§
source§impl<'de> Deserialize<'de> for OsmId
impl<'de> Deserialize<'de> for OsmId
source§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
source§impl From<RelationId> for OsmId
impl From<RelationId> for OsmId
source§fn from(r: RelationId) -> Self
fn from(r: RelationId) -> Self
Converts to this type from the input type.
source§impl Ord for OsmId
impl Ord for OsmId
source§impl PartialEq<OsmId> for OsmId
impl PartialEq<OsmId> for OsmId
source§impl PartialOrd<OsmId> for OsmId
impl PartialOrd<OsmId> for OsmId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more