pub trait AsValues {
// Required methods
fn bits(&self) -> BitId;
fn get(&self, id: BitId) -> Option<bool>;
// Provided methods
fn copy_into<T: AsValuesMut>(&self, other: &mut T) { ... }
fn convert<T: AsValuesMut + Default>(&self) -> T { ... }
}Expand description
Something that can be used to get GPIO line values
Required Methods§
Provided Methods§
Sourcefn copy_into<T: AsValuesMut>(&self, other: &mut T)
fn copy_into<T: AsValuesMut>(&self, other: &mut T)
Copy values to another variable
Sourcefn convert<T: AsValuesMut + Default>(&self) -> T
fn convert<T: AsValuesMut + Default>(&self) -> T
Convert to another representation
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.