pub enum DrawCommand {
Fill {
shape: Shape,
},
Stroke {
shape: Shape,
},
CopyBuffer {
top_left: Point2<i32>,
bottom_right: Point2<i32>,
stride: NonZeroU16,
buffer: String,
},
Write {
text: V5Text,
location: TextLocation,
opaque: bool,
background: Color,
},
}
Expand description
An instruction for drawing to the robot LCD screen.
Variants§
Trait Implementations§
Source§impl Clone for DrawCommand
impl Clone for DrawCommand
Source§fn clone(&self) -> DrawCommand
fn clone(&self) -> DrawCommand
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DrawCommand
impl Debug for DrawCommand
Source§impl<'de> Deserialize<'de> for DrawCommand
impl<'de> Deserialize<'de> for DrawCommand
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
Source§impl Hash for DrawCommand
impl Hash for DrawCommand
Source§impl Ord for DrawCommand
impl Ord for DrawCommand
Source§fn cmp(&self, other: &DrawCommand) -> Ordering
fn cmp(&self, other: &DrawCommand) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DrawCommand
impl PartialEq for DrawCommand
Source§impl PartialOrd for DrawCommand
impl PartialOrd for DrawCommand
Source§impl Serialize for DrawCommand
impl Serialize for DrawCommand
impl Eq for DrawCommand
impl StructuralPartialEq for DrawCommand
Auto Trait Implementations§
impl Freeze for DrawCommand
impl RefUnwindSafe for DrawCommand
impl Send for DrawCommand
impl Sync for DrawCommand
impl Unpin for DrawCommand
impl UnwindSafe for DrawCommand
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