Enum usvg::ShapeRendering
source · [−]pub enum ShapeRendering {
OptimizeSpeed,
CrispEdges,
GeometricPrecision,
}
Expand description
A shape rendering method.
shape-rendering
attribute in the SVG.
Variants
OptimizeSpeed
CrispEdges
GeometricPrecision
Implementations
sourceimpl 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
sourceimpl Clone for ShapeRendering
impl Clone for ShapeRendering
sourcefn clone(&self) -> ShapeRendering
fn clone(&self) -> ShapeRendering
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShapeRendering
impl Debug for ShapeRendering
sourceimpl Default for ShapeRendering
impl Default for ShapeRendering
sourceimpl FromStr for ShapeRendering
impl FromStr for ShapeRendering
sourceimpl PartialEq<ShapeRendering> for ShapeRendering
impl PartialEq<ShapeRendering> for ShapeRendering
impl Copy for ShapeRendering
impl StructuralPartialEq for ShapeRendering
Auto Trait Implementations
impl RefUnwindSafe for ShapeRendering
impl Send for ShapeRendering
impl Sync for ShapeRendering
impl Unpin for ShapeRendering
impl UnwindSafe for ShapeRendering
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IsDefault for T where
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for T where
T: Default + PartialEq<T> + Copy,
sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more