#[non_exhaustive]pub struct SectionChain {
pub points: Vec<Point2>,
pub ends: Option<[ChainEnd; 2]>,
}Expand description
One plane-local cut polyline: closed, or open and ending on a region.
A closed chain’s terminal point is implicit and must not duplicate the first point.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.points: Vec<Point2>Plane-local points in traversal order.
ends: Option<[ChainEnd; 2]>What the first and last point end on; None for a closed chain.
Implementations§
Trait Implementations§
Source§impl Clone for SectionChain
impl Clone for SectionChain
Source§fn clone(&self) -> SectionChain
fn clone(&self) -> SectionChain
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 SectionChain
impl Debug for SectionChain
Source§impl PartialEq for SectionChain
impl PartialEq for SectionChain
impl StructuralPartialEq for SectionChain
Auto Trait Implementations§
impl Freeze for SectionChain
impl RefUnwindSafe for SectionChain
impl Send for SectionChain
impl Sync for SectionChain
impl Unpin for SectionChain
impl UnsafeUnpin for SectionChain
impl UnwindSafe for SectionChain
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