pub struct DecomposeResult {
pub parts: Vec<Vec<[i64; 2]>>,
pub steiner_points: Vec<[i64; 2]>,
pub strategy: Strategy,
pub trace: Option<Vec<Attempt>>,
}Expand description
Result of a successful decomposition.
Fields§
§parts: Vec<Vec<[i64; 2]>>The convex parts. Each is a ring of [x, y] points.
steiner_points: Vec<[i64; 2]>Vertices introduced by decomposition (not in original ring). Empty when allow_steiner=false or exact partition succeeded.
strategy: Strategy§trace: Option<Vec<Attempt>>Trait Implementations§
Source§impl Clone for DecomposeResult
impl Clone for DecomposeResult
Source§fn clone(&self) -> DecomposeResult
fn clone(&self) -> DecomposeResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecomposeResult
impl RefUnwindSafe for DecomposeResult
impl Send for DecomposeResult
impl Sync for DecomposeResult
impl Unpin for DecomposeResult
impl UnsafeUnpin for DecomposeResult
impl UnwindSafe for DecomposeResult
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