Enum ev3dev_lang_rust::sensors::SensorPort[][src]

pub enum SensorPort {
    In1,
    In2,
    In3,
    In4,
}

EV3 ports in1 to in4

Variants

In1

EV3 in1 port

In2

EV3 in2 port

In3

EV3 in3 port

In4

EV3 in4 port

Implementations

impl SensorPort[src]

pub fn format_name(name: &str) -> String[src]

Try to format a device name path to a port name.

Trait Implementations

impl Clone for SensorPort[src]

impl Copy for SensorPort[src]

impl Debug for SensorPort[src]

impl Port for SensorPort[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.