pub struct Piece {
pub ends: [VertexId; 2],
pub segments: Vec<usize>,
}Expand description
A stretch of segments no other segment crosses or touches inside.
Fields§
§ends: [VertexId; 2]The vertices, ends[0] < ends[1].
segments: Vec<usize>The segments that run over the piece, ascending.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Piece
impl RefUnwindSafe for Piece
impl Send for Piece
impl Sync for Piece
impl Unpin for Piece
impl UnsafeUnpin for Piece
impl UnwindSafe for Piece
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