pub trait Filter {
const FILTER_TYPE: FilterType;
// Required method
fn to_registers(&self) -> [u8; 8];
// Provided method
fn filter_type(&self) -> FilterType { ... }
}
Required Associated Constants§
Sourceconst FILTER_TYPE: FilterType
const FILTER_TYPE: FilterType
The type of the filter.
Required Methods§
Sourcefn to_registers(&self) -> [u8; 8]
fn to_registers(&self) -> [u8; 8]
Get the register level representation of the filter.
Provided Methods§
fn filter_type(&self) -> FilterType
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.