pub struct Plot {
pub commands: Vec<Command>,
}
Fields§
§commands: Vec<Command>
Implementations§
Source§impl Plot
impl Plot
pub fn new() -> Self
pub fn point(&mut self, color: Color, p: Point)
pub fn line(&mut self, color: Color, p1: Point, p2: Point)
pub fn lines(&mut self, color: Color, lines: Vec<Vec<Point>>)
pub fn rectangle(&mut self, color: Color, _: Rectangle)
pub fn command(&mut self, cmd: Command)
pub fn bounding(&self) -> Rectangle
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Plot
impl<'de> Deserialize<'de> for Plot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Plot
impl RefUnwindSafe for Plot
impl Send for Plot
impl Sync for Plot
impl Unpin for Plot
impl UnwindSafe for Plot
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