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