pub struct BooleanBoundaryChain { /* private fields */ }Expand description
One endpoint-connected directed boundary chain.
Implementations§
Source§impl BooleanBoundaryChain
impl BooleanBoundaryChain
Sourcepub fn new(
fragments: Vec<DirectedBooleanFragment>,
closed: bool,
) -> CurveResult<Self>
pub fn new( fragments: Vec<DirectedBooleanFragment>, closed: bool, ) -> CurveResult<Self>
Constructs a boundary chain from already-ordered fragments.
Sourcepub fn fragments(&self) -> &[DirectedBooleanFragment]
pub fn fragments(&self) -> &[DirectedBooleanFragment]
Returns fragments in traversal order.
Sourcepub fn into_fragments(self) -> Vec<DirectedBooleanFragment>
pub fn into_fragments(self) -> Vec<DirectedBooleanFragment>
Consumes the chain and returns fragments in traversal order.
Trait Implementations§
Source§impl Clone for BooleanBoundaryChain
impl Clone for BooleanBoundaryChain
Source§fn clone(&self) -> BooleanBoundaryChain
fn clone(&self) -> BooleanBoundaryChain
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 moreSource§impl Debug for BooleanBoundaryChain
impl Debug for BooleanBoundaryChain
Source§impl PartialEq for BooleanBoundaryChain
impl PartialEq for BooleanBoundaryChain
Source§fn eq(&self, other: &BooleanBoundaryChain) -> bool
fn eq(&self, other: &BooleanBoundaryChain) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BooleanBoundaryChain
Auto Trait Implementations§
impl !RefUnwindSafe for BooleanBoundaryChain
impl !Sync for BooleanBoundaryChain
impl Freeze for BooleanBoundaryChain
impl Send for BooleanBoundaryChain
impl Unpin for BooleanBoundaryChain
impl UnsafeUnpin for BooleanBoundaryChain
impl UnwindSafe for BooleanBoundaryChain
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