pub struct SvgWriter<W: Write> { /* private fields */ }
Expand description
SVG writer.
Implementations§
Trait Implementations§
source§impl<W: Write> FeatureProcessor for SvgWriter<W>
impl<W: Write> FeatureProcessor for SvgWriter<W>
source§impl<W: Write> GeomProcessor for SvgWriter<W>
impl<W: Write> GeomProcessor for SvgWriter<W>
source§fn xy(&mut self, x: f64, y: f64, _idx: usize) -> Result<()>
fn xy(&mut self, x: f64, y: f64, _idx: usize) -> Result<()>
Process coordinate with x,y dimensions
source§fn linestring_begin(
&mut self,
tagged: bool,
_size: usize,
_idx: usize
) -> Result<()>
fn linestring_begin( &mut self, tagged: bool, _size: usize, _idx: usize ) -> Result<()>
Begin of
LineString
processing Read moresource§fn linestring_end(&mut self, tagged: bool, _idx: usize) -> Result<()>
fn linestring_end(&mut self, tagged: bool, _idx: usize) -> Result<()>
End of
LineString
processingsource§fn multilinestring_begin(&mut self, _size: usize, _idx: usize) -> Result<()>
fn multilinestring_begin(&mut self, _size: usize, _idx: usize) -> Result<()>
Begin of
MultiLineString
processing Read moresource§fn multilinestring_end(&mut self, _idx: usize) -> Result<()>
fn multilinestring_end(&mut self, _idx: usize) -> Result<()>
End of
MultiLineString
processingsource§fn polygon_begin(
&mut self,
_tagged: bool,
_size: usize,
_idx: usize
) -> Result<()>
fn polygon_begin( &mut self, _tagged: bool, _size: usize, _idx: usize ) -> Result<()>
Begin of
Polygon
processing Read moresource§fn dimensions(&self) -> CoordDimensions
fn dimensions(&self) -> CoordDimensions
Additional dimensions requested when processing coordinates
source§fn coordinate(
&mut self,
x: f64,
y: f64,
z: Option<f64>,
m: Option<f64>,
t: Option<f64>,
tm: Option<u64>,
idx: usize
) -> Result<()>
fn coordinate( &mut self, x: f64, y: f64, z: Option<f64>, m: Option<f64>, t: Option<f64>, tm: Option<u64>, idx: usize ) -> Result<()>
Process coordinate with all requested dimensions
source§fn empty_point(&mut self, idx: usize) -> Result<()>
fn empty_point(&mut self, idx: usize) -> Result<()>
Process empty coordinates, like WKT’s
POINT EMPTY
Read moresource§fn multipoint_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn multipoint_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of MultiPoint processing Read more
source§fn multipolygon_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn multipolygon_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of
MultiPolygon
processing Read moresource§fn geometrycollection_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn geometrycollection_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of
GeometryCollection
processing Read moresource§fn geometrycollection_end(&mut self, idx: usize) -> Result<()>
fn geometrycollection_end(&mut self, idx: usize) -> Result<()>
End of
GeometryCollection
processingsource§fn circularstring_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn circularstring_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of
CircularString
processing Read moresource§fn compoundcurve_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn compoundcurve_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of CompoundCurve processing Read more
source§fn curvepolygon_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn curvepolygon_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of CurvePolygon processing Read more
source§fn multicurve_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn multicurve_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of MultiCurve processing Read more
source§fn multisurface_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn multisurface_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of MultiSurface processing Read more
source§fn triangle_begin(
&mut self,
tagged: bool,
size: usize,
idx: usize
) -> Result<()>
fn triangle_begin( &mut self, tagged: bool, size: usize, idx: usize ) -> Result<()>
Begin of Triangle processing Read more
source§fn polyhedralsurface_begin(&mut self, size: usize, idx: usize) -> Result<()>
fn polyhedralsurface_begin(&mut self, size: usize, idx: usize) -> Result<()>
Begin of PolyhedralSurface processing Read more
source§fn polyhedralsurface_end(&mut self, idx: usize) -> Result<()>
fn polyhedralsurface_end(&mut self, idx: usize) -> Result<()>
End of PolyhedralSurface processing
Auto Trait Implementations§
impl<W> Freeze for SvgWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for SvgWriter<W>where
W: RefUnwindSafe,
impl<W> Send for SvgWriter<W>where
W: Send,
impl<W> Sync for SvgWriter<W>where
W: Sync,
impl<W> Unpin for SvgWriter<W>where
W: Unpin,
impl<W> UnwindSafe for SvgWriter<W>where
W: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moresource§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more