pub struct ArcNode { /* private fields */ }
Trait Implementations§
Source§impl From<ArcNode> for StringNode
impl From<ArcNode> for StringNode
Source§impl Node for ArcNode
impl Node for ArcNode
Source§fn set_lat_lon_direct(&mut self, loc: Option<(Lat, Lon)>)
fn set_lat_lon_direct(&mut self, loc: Option<(Lat, Lon)>)
Directly set the lat & lon of the node, see
set_lat_lon()
as a more convienient method.Source§fn lat_lon_f64(&self) -> Option<(f64, f64)>
fn lat_lon_f64(&self) -> Option<(f64, f64)>
Latitude & Longitude of the node as
f64
(if it’s set)Source§fn has_lat_lon(&self) -> bool
fn has_lat_lon(&self) -> bool
True iff this node has latitude & longitude set
Source§fn unset_lat_lon(&mut self)
fn unset_lat_lon(&mut self)
Remove the lat & lon for this node
Source§impl OSMObjBase for ArcNode
impl OSMObjBase for ArcNode
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)
impl StructuralPartialEq for ArcNode
Auto Trait Implementations§
impl Freeze for ArcNode
impl RefUnwindSafe for ArcNode
impl Send for ArcNode
impl Sync for ArcNode
impl Unpin for ArcNode
impl UnwindSafe for ArcNode
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