Enum ev3dev_lang_rust::sensors::SensorPort
source · pub enum SensorPort {
In1,
In2,
In3,
In4,
}Expand description
EV3 ports in1 to in4
Variants§
Implementations§
source§impl SensorPort
impl SensorPort
sourcepub fn format_name(name: &str) -> String
pub fn format_name(name: &str) -> String
Try to format a device name path to a port name.
Trait Implementations§
source§impl Clone for SensorPort
impl Clone for SensorPort
source§fn clone(&self) -> SensorPort
fn clone(&self) -> SensorPort
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 SensorPort
impl Debug for SensorPort
impl Copy for SensorPort
Auto Trait Implementations§
impl RefUnwindSafe for SensorPort
impl Send for SensorPort
impl Sync for SensorPort
impl Unpin for SensorPort
impl UnwindSafe for SensorPort
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