pub struct LineString {
pub type: LineStringType,
pub coordinates: Vec<Position>,
pub bbox: Option<Bbox>,
}Expand description
A GeoJSON geometry object (RFC 7946 §3.1), matching the native
@types/geojson interface of the same name.
Fields§
§type: LineStringType§coordinates: Vec<Position>§bbox: Option<Bbox>Implementations§
Trait Implementations§
Source§impl Clone for LineString
impl Clone for LineString
Source§fn clone(&self) -> LineString
fn clone(&self) -> LineString
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LineString
impl Debug for LineString
Source§impl<'de> Deserialize<'de> for LineString
impl<'de> Deserialize<'de> for LineString
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<LineString> for LineString
impl From<LineString> for LineString
Source§fn from(ls: LineString<f64>) -> Self
fn from(ls: LineString<f64>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LineString
impl PartialEq for LineString
Source§impl Serialize for LineString
impl Serialize for LineString
impl StructuralPartialEq for LineString
Source§impl TryFrom<LineString> for LineString<f64>
impl TryFrom<LineString> for LineString<f64>
Auto Trait Implementations§
impl Freeze for LineString
impl RefUnwindSafe for LineString
impl Send for LineString
impl Sync for LineString
impl Unpin for LineString
impl UnsafeUnpin for LineString
impl UnwindSafe for LineString
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