#[repr(C)]pub enum CommandType {
Show 19 variants
Nop = 0,
Scissor = 1,
Line = 2,
Curve = 3,
Rect = 4,
RectFilled = 5,
RectMultiColor = 6,
Circle = 7,
CircleFilled = 8,
Arc = 9,
ArcFilled = 10,
Triangle = 11,
TriangleFilled = 12,
Polygon = 13,
PolygonFilled = 14,
Polyline = 15,
Text = 16,
Image = 17,
Custom = 18,
}
Variants§
Nop = 0
Scissor = 1
Line = 2
Curve = 3
Rect = 4
RectFilled = 5
RectMultiColor = 6
Circle = 7
CircleFilled = 8
Arc = 9
ArcFilled = 10
Triangle = 11
TriangleFilled = 12
Polygon = 13
PolygonFilled = 14
Polyline = 15
Text = 16
Image = 17
Custom = 18
Trait Implementations§
Source§impl Clone for CommandType
impl Clone for CommandType
Source§fn clone(&self) -> CommandType
fn clone(&self) -> CommandType
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<'a> From<&'a u32> for &'a CommandType
impl<'a> From<&'a u32> for &'a CommandType
Source§fn from(a: &'a nk_command_type) -> &'a CommandType
fn from(a: &'a nk_command_type) -> &'a CommandType
Converts to this type from the input type.
Source§impl From<CommandType> for nk_command_type
impl From<CommandType> for nk_command_type
Source§fn from(a: CommandType) -> nk_command_type
fn from(a: CommandType) -> nk_command_type
Converts to this type from the input type.
Source§impl From<u32> for CommandType
impl From<u32> for CommandType
Source§fn from(a: nk_command_type) -> CommandType
fn from(a: nk_command_type) -> CommandType
Converts to this type from the input type.
Source§impl PartialEq for CommandType
impl PartialEq for CommandType
impl Copy for CommandType
impl Eq for CommandType
impl StructuralPartialEq for CommandType
Auto Trait Implementations§
impl Freeze for CommandType
impl RefUnwindSafe for CommandType
impl Send for CommandType
impl Sync for CommandType
impl Unpin for CommandType
impl UnwindSafe for CommandType
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