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 for OsmId
impl PartialEq for OsmId
source§impl PartialOrd for OsmId
impl PartialOrd 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 moreimpl Copy for OsmId
impl Eq for OsmId
impl StructuralEq for OsmId
impl StructuralPartialEq for OsmId
Auto Trait Implementations§
impl RefUnwindSafe for OsmId
impl Send for OsmId
impl Sync for OsmId
impl Unpin for OsmId
impl UnwindSafe for OsmId
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