Trait EncoderConfig

Source
pub trait EncoderConfig: DebouncedInputConfig {
    type Counts: AddAssign + Integer + Signed + Copy;

    const COUNTS_DIV: Self::Counts;
}
Expand description

Represents a config for Encoder.

Required Associated Constants§

Source

const COUNTS_DIV: Self::Counts

The number of counts to register one turn of the encoder.

Required Associated Types§

Source

type Counts: AddAssign + Integer + Signed + Copy

The type of counts counter.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§