Enum usvg_tree::ShapeRendering
source · pub enum ShapeRendering {
OptimizeSpeed,
CrispEdges,
GeometricPrecision,
}
Expand description
A shape rendering method.
shape-rendering
attribute in the SVG.
Variants§
Implementations§
source§impl ShapeRendering
impl ShapeRendering
sourcepub fn use_shape_antialiasing(self) -> bool
pub fn use_shape_antialiasing(self) -> bool
Checks if anti-aliasing should be enabled.
Trait Implementations§
source§impl Clone for ShapeRendering
impl Clone for ShapeRendering
source§fn clone(&self) -> ShapeRendering
fn clone(&self) -> ShapeRendering
Returns a copy 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 ShapeRendering
impl Debug for ShapeRendering
source§impl Default for ShapeRendering
impl Default for ShapeRendering
source§impl FromStr for ShapeRendering
impl FromStr for ShapeRendering
source§impl PartialEq<ShapeRendering> for ShapeRendering
impl PartialEq<ShapeRendering> for ShapeRendering
source§fn eq(&self, other: &ShapeRendering) -> bool
fn eq(&self, other: &ShapeRendering) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.