pub struct Figure {
pub points: Vec<(Arc<Expression<PointExpr>>, PointMeta)>,
pub lines: Vec<Arc<Expression<LineExpr>>>,
pub angles: Vec<(Arc<Expression<ScalarExpr>>, u8)>,
pub segments: Vec<(Arc<Expression<PointExpr>>, Arc<Expression<PointExpr>>)>,
pub canvas_size: (usize, usize),
}Expand description
Defines the visual data of the figure.
Fields§
§points: Vec<(Arc<Expression<PointExpr>>, PointMeta)>The points to be displayed
lines: Vec<Arc<Expression<LineExpr>>>The lines to be displayed
angles: Vec<(Arc<Expression<ScalarExpr>>, u8)>Angles to be displayed
segments: Vec<(Arc<Expression<PointExpr>>, Arc<Expression<PointExpr>>)>Segments to be displayed
canvas_size: (usize, usize)The canvas size.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Figure
impl Send for Figure
impl Sync for Figure
impl Unpin for Figure
impl UnwindSafe for Figure
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