Trait gpiod_core::AsValuesMut
source · [−]pub trait AsValuesMut: AsValues {
fn set(&mut self, id: BitId, val: Option<bool>);
fn with(self, id: BitId, val: Option<bool>) -> Self
where
Self: Sized,
{ ... }
fn copy_from<T: AsValues>(&mut self, other: &T) { ... }
fn fill<R: Iterator<Item = BitId>>(&mut self, range: R, val: Option<bool>) { ... }
fn truncate(&mut self, len: BitId) { ... }
}Expand description
Something that can be used to get and set GPIO line values
Required Methods
Provided Methods
sourcefn with(self, id: BitId, val: Option<bool>) -> Selfwhere
Self: Sized,
fn with(self, id: BitId, val: Option<bool>) -> Selfwhere
Self: Sized,
Change the value of specific bit identified by offset
If bit if out of range (0..bits) then nothing will be changed.