pub trait Feature {
// Required methods
fn name(&self) -> &'static str;
fn required(&self) -> bool;
fn vector_length(&self) -> usize;
fn check_volatile(&self) -> bool;
// Provided method
fn check(&self) -> bool { ... }
}
Expand description
A feature that can be checked at runtime.
Required Methods§
Sourcefn vector_length(&self) -> usize
fn vector_length(&self) -> usize
The length of the vector in bytes.
Sourcefn check_volatile(&self) -> bool
fn check_volatile(&self) -> bool
Checks if the feature is supported at runtime.