pub enum StringOSMObj {
Node(StringNode),
Way(StringWay),
Relation(StringRelation),
}
Variants§
Trait Implementations§
Source§impl Clone for StringOSMObj
impl Clone for StringOSMObj
Source§fn clone(&self) -> StringOSMObj
fn clone(&self) -> StringOSMObj
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StringOSMObj
impl Debug for StringOSMObj
Source§impl From<ArcOSMObj> for StringOSMObj
impl From<ArcOSMObj> for StringOSMObj
Source§impl From<RcOSMObj> for StringOSMObj
impl From<RcOSMObj> for StringOSMObj
Source§impl From<StringNode> for StringOSMObj
impl From<StringNode> for StringOSMObj
Source§fn from(n: StringNode) -> Self
fn from(n: StringNode) -> Self
Converts to this type from the input type.
Source§impl From<StringRelation> for StringOSMObj
impl From<StringRelation> for StringOSMObj
Source§fn from(r: StringRelation) -> Self
fn from(r: StringRelation) -> Self
Converts to this type from the input type.
Source§impl From<StringWay> for StringOSMObj
impl From<StringWay> for StringOSMObj
Source§impl OSMObj for StringOSMObj
impl OSMObj for StringOSMObj
Source§type Node = StringNode
type Node = StringNode
The type of the Node type
Source§type Relation = StringRelation
type Relation = StringRelation
The type of the Relation type
fn into_node(self) -> Option<StringNode>
fn into_way(self) -> Option<StringWay>
fn into_relation(self) -> Option<StringRelation>
fn as_node(&self) -> Option<&StringNode>
fn as_way(&self) -> Option<&StringWay>
fn as_relation(&self) -> Option<&StringRelation>
fn as_node_mut(&mut self) -> Option<&mut StringNode>
fn as_way_mut(&mut self) -> Option<&mut StringWay>
fn as_relation_mut(&mut self) -> Option<&mut StringRelation>
fn is_node(&self) -> bool
fn is_way(&self) -> bool
fn is_relation(&self) -> bool
Source§impl OSMObjBase for StringOSMObj
impl OSMObjBase for StringOSMObj
fn id(&self) -> ObjId
fn version(&self) -> Option<u32>
fn deleted(&self) -> bool
fn changeset_id(&self) -> Option<u32>
fn timestamp(&self) -> &Option<TimestampFormat>
fn uid(&self) -> Option<u32>
fn user(&self) -> Option<&str>
fn set_id(&mut self, val: impl Into<ObjId>)
fn set_version(&mut self, val: impl Into<Option<u32>>)
fn set_deleted(&mut self, val: bool)
fn set_changeset_id(&mut self, val: impl Into<Option<u32>>)
fn set_timestamp(&mut self, val: impl Into<Option<TimestampFormat>>)
fn set_uid(&mut self, val: impl Into<Option<u32>>)
fn set_user<'a>(&mut self, val: impl Into<Option<&'a str>>)
fn tag(&self, key: impl AsRef<str>) -> Option<&str>
fn set_tag(&mut self, key: impl AsRef<str>, value: impl Into<String>)
fn unset_tag(&mut self, key: impl AsRef<str>)
fn object_type(&self) -> OSMObjectType
fn has_tag(&self, key: impl AsRef<str>) -> bool
fn strip_metadata(&mut self)
Source§impl PartialEq for StringOSMObj
impl PartialEq for StringOSMObj
impl StructuralPartialEq for StringOSMObj
Auto Trait Implementations§
impl Freeze for StringOSMObj
impl RefUnwindSafe for StringOSMObj
impl Send for StringOSMObj
impl Sync for StringOSMObj
impl Unpin for StringOSMObj
impl UnwindSafe for StringOSMObj
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