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

Represents a V5 ADI port pair configured as an ultrasonic sensor.

Implementations

Initializes an ultrasonic sensor on two ADI ports.

Safety

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

Gets the current value of the ultrasonic sensor.

Trait Implementations

Executes the destructor for this type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

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.