pub struct AdiPort { /* private fields */ }
Expand description

A struct which represents an unconfigured ADI port.

Implementations

Constructs a new ADI port.

Safety

This function is unsafe because it allows the user to create multiple mutable references to an V5 ADI port. You likely want to implement Robot::new() instead.

Turns this port into an ADI analog

Turns this and another port into an encoder

Turns this port into a gyro

Turns this and another port into an ultrasonic sensor

Trait Implementations

Converts a AdiPort into a AdiAnalog.

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.