#[non_exhaustive]pub struct RingTouch {
pub ring: usize,
pub edge: usize,
pub vertex: usize,
}Expand description
A vertex lying inside an edge of a ring, away from both its ends, as
triangulate_with finds it under PinchPolicy::Accept (#265).
Indices follow triangulate_with: ring 0 is the outer ring and ring
h + 1 hole h; edge k of a ring runs from its vertex k to its
vertex k + 1 (the last back to the first); vertex indexes
outer ++ holes.
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.ring: usizeThe ring whose edge the vertex lies in.
edge: usizeThe edge of that ring.
vertex: usizeThe vertex, by its index in outer ++ holes.
Trait Implementations§
impl Copy for RingTouch
impl Eq for RingTouch
impl StructuralPartialEq for RingTouch
Auto Trait Implementations§
impl Freeze for RingTouch
impl RefUnwindSafe for RingTouch
impl Send for RingTouch
impl Sync for RingTouch
impl Unpin for RingTouch
impl UnsafeUnpin for RingTouch
impl UnwindSafe for RingTouch
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