pub trait AsValues {
    fn bits(&self) -> u8;
    fn get(&self, id: u8) -> Option<bool>;

    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

Get the value of specific bit identified by offset

If bit is out of range (0..bits) or not masked then None should be returned.

Provided Methods

Copy values to another variable

Convert to another representation

Implementations on Foreign Types

Implementors