Enum bezier_rs::ArcStrategy
source · pub enum ArcStrategy {
Automatic,
FavorLargerArcs,
FavorCorrectness,
}
Expand description
Struct used to represent the different strategies for generating arc approximations.
Variants§
Automatic
Start with the greedy strategy of maximizing arc approximations and automatically switch to the divide-and-conquer when the greedy approximations no longer fall within the error bound.
FavorLargerArcs
Use the greedy strategy to maximize approximated arcs, despite potentially erroneous arcs.
FavorCorrectness
Use the divide-and-conquer strategy that prioritizes correctness over maximal arcs.
Trait Implementations§
source§impl Clone for ArcStrategy
impl Clone for ArcStrategy
source§fn clone(&self) -> ArcStrategy
fn clone(&self) -> ArcStrategy
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 moreimpl Copy for ArcStrategy
Auto Trait Implementations§
impl RefUnwindSafe for ArcStrategy
impl Send for ArcStrategy
impl Sync for ArcStrategy
impl Unpin for ArcStrategy
impl UnwindSafe for ArcStrategy
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