Struct cavalier_contours::polyline::BooleanResult
source · pub struct BooleanResult<P>where
P: PlineCreation,{
pub pos_plines: Vec<BooleanResultPline<P>>,
pub neg_plines: Vec<BooleanResultPline<P>>,
pub result_info: BooleanResultInfo,
}
Expand description
Result of performing a boolean operation between two polylines.
Fields§
§pos_plines: Vec<BooleanResultPline<P>>
Positive remaining space polylines.
neg_plines: Vec<BooleanResultPline<P>>
Negative subtracted space polylines.
result_info: BooleanResultInfo
Information about what happened during the boolean operation.
Implementations§
source§impl<P> BooleanResult<P>where
P: PlineCreation,
impl<P> BooleanResult<P>where
P: PlineCreation,
pub fn new( pos_plines: Vec<BooleanResultPline<P>>, neg_plines: Vec<BooleanResultPline<P>>, result_info: BooleanResultInfo ) -> Self
pub fn empty(result_info: BooleanResultInfo) -> Self
pub fn from_whole_plines<I>(
pos_plines: I,
neg_plines: I,
result_info: BooleanResultInfo
) -> Selfwhere
I: IntoIterator<Item = P>,
Trait Implementations§
source§impl<P> Clone for BooleanResult<P>where
P: PlineCreation + Clone,
impl<P> Clone for BooleanResult<P>where
P: PlineCreation + Clone,
source§fn clone(&self) -> BooleanResult<P>
fn clone(&self) -> BooleanResult<P>
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 moreAuto Trait Implementations§
impl<P> RefUnwindSafe for BooleanResult<P>
impl<P> Send for BooleanResult<P>
impl<P> Sync for BooleanResult<P>
impl<P> Unpin for BooleanResult<P>
impl<P> UnwindSafe for BooleanResult<P>
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