pub struct Shape {
pub points: &'static [(i16, i16)],
pub ink: Ink,
}Expand description
One closed polygon of an icon.
Fields§
§points: &'static [(i16, i16)]Vertices on the 0..=GRID box, y downwards, in order round the
outline. Three at least; MAX_VERTICES at most.
ink: InkWhich colour it is drawn in.
Implementations§
Trait Implementations§
impl Copy for Shape
impl Eq for Shape
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
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