#[repr(i32)]pub enum SensorType {
NONE = 0,
ULTRASONIC = 1,
GYRO = 2,
TOUCH = 3,
COLOR = 4,
INFRARED = 5,
HtNxtACCEL = 6,
HtNxtCOLOR = 7,
NxtULTRASONIC = 8,
NxtTEMP = 9,
}Variants§
NONE = 0
ULTRASONIC = 1
GYRO = 2
TOUCH = 3
COLOR = 4
INFRARED = 5
HtNxtACCEL = 6
HtNxtCOLOR = 7
NxtULTRASONIC = 8
NxtTEMP = 9
Trait Implementations§
Source§impl Clone for SensorType
impl Clone for SensorType
Source§fn clone(&self) -> SensorType
fn clone(&self) -> SensorType
Returns a duplicate 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 From<i32> for SensorType
impl From<i32> for SensorType
Source§fn from(t: i32) -> SensorType
fn from(t: i32) -> SensorType
Converts to this type from the input type.
Source§impl PartialEq for SensorType
impl PartialEq for SensorType
impl Copy for SensorType
impl StructuralPartialEq for SensorType
Auto Trait Implementations§
impl Freeze for SensorType
impl RefUnwindSafe for SensorType
impl Send for SensorType
impl Sync for SensorType
impl Unpin for SensorType
impl UnwindSafe for SensorType
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