pub struct Piece {
pub points: Vec<[f64; 2]>,
pub colour: String,
pub opacity: f64,
}Expand description
A stretch of one colour, in pixels of the drawing.
Fields§
§points: Vec<[f64; 2]>The stretch, pixels.
colour: String#rrggbb.
opacity: f640 to 1.
Trait Implementations§
impl StructuralPartialEq for Piece
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