pub enum StrokeOptLevel {
Subdivide,
Optimized,
}Expand description
Optimization level for computing stroke outlines.
Note that in the current implementation, this setting has no effect.
However, having a tradeoff between optimization of number of segments
and speed makes sense and may be added in the future, so applications
should set it appropriately. For real time rendering, the appropriate
value is Subdivide.
Variants§
Subdivide
Adaptively subdivide segments in half.
Optimized
Compute optimized subdivision points to minimize error.
Trait Implementations§
Source§impl Clone for StrokeOptLevel
impl Clone for StrokeOptLevel
Source§fn clone(&self) -> StrokeOptLevel
fn clone(&self) -> StrokeOptLevel
Returns a duplicate 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 StrokeOptLevel
impl Debug for StrokeOptLevel
Source§impl PartialEq for StrokeOptLevel
impl PartialEq for StrokeOptLevel
impl Copy for StrokeOptLevel
impl Eq for StrokeOptLevel
impl StructuralPartialEq for StrokeOptLevel
Auto Trait Implementations§
impl Freeze for StrokeOptLevel
impl RefUnwindSafe for StrokeOptLevel
impl Send for StrokeOptLevel
impl Sync for StrokeOptLevel
impl Unpin for StrokeOptLevel
impl UnwindSafe for StrokeOptLevel
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