Enum vex_sdk::motor::V5MotorControlMode
source · #[repr(C)]pub enum V5MotorControlMode {
kMotorControlModeOFF = 0,
kMotorControlModeBRAKE = 1,
kMotorControlModeHOLD = 2,
kMotorControlModeSERVO = 3,
kMotorControlModePROFILE = 4,
kMotorControlModeVELOCITY = 5,
kMotorControlModeUNDEFINED = 6,
}Variants§
kMotorControlModeOFF = 0
kMotorControlModeBRAKE = 1
kMotorControlModeHOLD = 2
kMotorControlModeSERVO = 3
kMotorControlModePROFILE = 4
kMotorControlModeVELOCITY = 5
kMotorControlModeUNDEFINED = 6
Trait Implementations§
source§impl Clone for V5MotorControlMode
impl Clone for V5MotorControlMode
source§fn clone(&self) -> V5MotorControlMode
fn clone(&self) -> V5MotorControlMode
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 V5MotorControlMode
impl Debug for V5MotorControlMode
source§impl Default for V5MotorControlMode
impl Default for V5MotorControlMode
source§fn default() -> V5MotorControlMode
fn default() -> V5MotorControlMode
Returns the “default value” for a type. Read more
source§impl PartialEq for V5MotorControlMode
impl PartialEq for V5MotorControlMode
source§fn eq(&self, other: &V5MotorControlMode) -> bool
fn eq(&self, other: &V5MotorControlMode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for V5MotorControlMode
impl Eq for V5MotorControlMode
impl StructuralPartialEq for V5MotorControlMode
Auto Trait Implementations§
impl Freeze for V5MotorControlMode
impl RefUnwindSafe for V5MotorControlMode
impl Send for V5MotorControlMode
impl Sync for V5MotorControlMode
impl Unpin for V5MotorControlMode
impl UnwindSafe for V5MotorControlMode
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