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,

source

pub fn new( pos_plines: Vec<BooleanResultPline<P>>, neg_plines: Vec<BooleanResultPline<P>>, result_info: BooleanResultInfo ) -> Self

source

pub fn empty(result_info: BooleanResultInfo) -> Self

source

pub fn from_whole_plines<I>( pos_plines: I, neg_plines: I, result_info: BooleanResultInfo ) -> Self
where I: IntoIterator<Item = P>,

Trait Implementations§

source§

impl<P> Clone for BooleanResult<P>
where P: PlineCreation + Clone,

source§

fn clone(&self) -> BooleanResult<P>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<P> Debug for BooleanResult<P>
where P: PlineCreation + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<P> RefUnwindSafe for BooleanResult<P>

§

impl<P> Send for BooleanResult<P>
where P: Send, <P as PlineSource>::Num: Send,

§

impl<P> Sync for BooleanResult<P>
where P: Sync, <P as PlineSource>::Num: Sync,

§

impl<P> Unpin for BooleanResult<P>
where P: Unpin, <P as PlineSource>::Num: Unpin,

§

impl<P> UnwindSafe for BooleanResult<P>
where P: UnwindSafe, <P as PlineSource>::Num: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.