pub struct Geom {
pub geom: Geometry,
}
Expand description
The Geom
struct is the backbone of sfconversions. It provides
an itermediary between extendr and geo / geo_types as required
by the orphan rule.
Fields§
§geom: Geometry
a single field containing a geo_types Geometry enum
Implementations§
Trait Implementations§
Source§impl From<Geom> for LineString
impl From<Geom> for LineString
Source§impl From<LineString> for Geom
impl From<LineString> for Geom
Source§fn from(lns: LineString) -> Self
fn from(lns: LineString) -> Self
Converts to this type from the input type.
Source§impl From<MultiLineString> for Geom
impl From<MultiLineString> for Geom
Source§fn from(lns: MultiLineString) -> Self
fn from(lns: MultiLineString) -> Self
Converts to this type from the input type.
Source§impl From<MultiPoint> for Geom
impl From<MultiPoint> for Geom
Source§fn from(pnt: MultiPoint) -> Self
fn from(pnt: MultiPoint) -> Self
Converts to this type from the input type.
Source§impl From<MultiPolygon> for Geom
impl From<MultiPolygon> for Geom
Source§fn from(poly: MultiPolygon) -> Self
fn from(poly: MultiPolygon) -> Self
Converts to this type from the input type.
Source§impl From<Robj> for Geom
extendr does not permit taking ownership of the pointers it creates
for structs. This impl clones the struct to create an owned struct.
impl From<Robj> for Geom
extendr does not permit taking ownership of the pointers it creates for structs. This impl clones the struct to create an owned struct.
Source§impl RTreeObject for Geom
Implement RTreeObject for Geom
impl RTreeObject for Geom
Implement RTreeObject for Geom
Auto Trait Implementations§
impl Freeze for Geom
impl RefUnwindSafe for Geom
impl Send for Geom
impl Sync for Geom
impl Unpin for Geom
impl UnwindSafe for Geom
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more