pub struct Measured<M: Copy + PartialEq> {
pub position: Coord<i32>,
pub m: M,
}Expand description
A Vertex carrying a measure/payload m (e.g. an M value) alongside its integer position.
The payload only needs to be Copy + PartialEq; it is never inspected by the slicer, just moved with
the vertex. Two Measured vertices are equal iff both their position and payload are equal.
Fields§
§position: Coord<i32>The integer position used for clipping/tiling.
m: MThe per-vertex payload, preserved through slicing.
Implementations§
Trait Implementations§
impl<M: Copy + Copy + PartialEq> Copy for Measured<M>
Source§impl<M: Copy + PartialEq + Default> PolyVertex for Measured<M>
impl<M: Copy + PartialEq + Default> PolyVertex for Measured<M>
Source§fn synthetic_at(position: Coord<i32>) -> Self
fn synthetic_at(position: Coord<i32>) -> Self
A synthetic vertex at
position, carrying a default (filler) payload.impl<M: PartialEq + Copy + PartialEq> StructuralPartialEq for Measured<M>
Auto Trait Implementations§
impl<M> Freeze for Measured<M>where
M: Freeze,
impl<M> RefUnwindSafe for Measured<M>where
M: RefUnwindSafe,
impl<M> Send for Measured<M>where
M: Send,
impl<M> Sync for Measured<M>where
M: Sync,
impl<M> Unpin for Measured<M>where
M: Unpin,
impl<M> UnsafeUnpin for Measured<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for Measured<M>where
M: UnwindSafe,
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