#[non_exhaustive]pub enum CommandKind {
Mit,
PosVel,
Vel,
PosForce,
}Expand description
Tagged discriminant of Command, suitable for error-reporting
“this codec does not support mode X”.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mit
Corresponds to Command::Mit.
PosVel
Corresponds to Command::PosVel.
Vel
Corresponds to Command::Vel.
PosForce
Corresponds to Command::PosForce.
Trait Implementations§
Source§impl Clone for CommandKind
impl Clone for CommandKind
Source§fn clone(&self) -> CommandKind
fn clone(&self) -> CommandKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandKind
impl Debug for CommandKind
Source§impl Hash for CommandKind
impl Hash for CommandKind
Source§impl PartialEq for CommandKind
impl PartialEq for CommandKind
Source§fn eq(&self, other: &CommandKind) -> bool
fn eq(&self, other: &CommandKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CommandKind
impl Eq for CommandKind
impl StructuralPartialEq for CommandKind
Auto Trait Implementations§
impl Freeze for CommandKind
impl RefUnwindSafe for CommandKind
impl Send for CommandKind
impl Sync for CommandKind
impl Unpin for CommandKind
impl UnsafeUnpin for CommandKind
impl UnwindSafe for CommandKind
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