Struct gpiod_core::Masked
source · [−]#[repr(C)]pub struct Masked<Bits> {
pub bits: Bits,
pub mask: Bits,
}Expand description
Line values with mask
Fields
bits: BitsLogic values of lines
mask: BitsMask of lines to get or set
Trait Implementations
sourceimpl AsValues for Masked<u16>
impl AsValues for Masked<u16>
fn bits(&self) -> BitId
sourcefn get(&self, id: BitId) -> Option<bool>
fn get(&self, id: BitId) -> Option<bool>
Get the value of specific bit identified by offset Read more
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
sourceimpl AsValues for Masked<u32>
impl AsValues for Masked<u32>
fn bits(&self) -> BitId
sourcefn get(&self, id: BitId) -> Option<bool>
fn get(&self, id: BitId) -> Option<bool>
Get the value of specific bit identified by offset Read more
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
sourceimpl AsValues for Masked<u64>
impl AsValues for Masked<u64>
fn bits(&self) -> BitId
sourcefn get(&self, id: BitId) -> Option<bool>
fn get(&self, id: BitId) -> Option<bool>
Get the value of specific bit identified by offset Read more
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
sourceimpl AsValues for Masked<u8>
impl AsValues for Masked<u8>
fn bits(&self) -> BitId
sourcefn get(&self, id: BitId) -> Option<bool>
fn get(&self, id: BitId) -> Option<bool>
Get the value of specific bit identified by offset Read more
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
sourceimpl AsValuesMut for Masked<u16>
impl AsValuesMut for Masked<u16>
sourcefn set(&mut self, id: BitId, val: Option<bool>)
fn set(&mut self, id: BitId, val: Option<bool>)
Set the value of specific bit identified by offset Read more
sourcefn with(self, id: BitId, val: Option<bool>) -> Self where
Self: Sized,
fn with(self, id: BitId, val: Option<bool>) -> Self where
Self: Sized,
Change the value of specific bit identified by offset Read more
sourceimpl AsValuesMut for Masked<u32>
impl AsValuesMut for Masked<u32>
sourcefn set(&mut self, id: BitId, val: Option<bool>)
fn set(&mut self, id: BitId, val: Option<bool>)
Set the value of specific bit identified by offset Read more
sourcefn with(self, id: BitId, val: Option<bool>) -> Self where
Self: Sized,
fn with(self, id: BitId, val: Option<bool>) -> Self where
Self: Sized,
Change the value of specific bit identified by offset Read more
sourceimpl AsValuesMut for Masked<u64>
impl AsValuesMut for Masked<u64>
sourcefn set(&mut self, id: BitId, val: Option<bool>)
fn set(&mut self, id: BitId, val: Option<bool>)
Set the value of specific bit identified by offset Read more
sourcefn with(self, id: BitId, val: Option<bool>) -> Self where
Self: Sized,
fn with(self, id: BitId, val: Option<bool>) -> Self where
Self: Sized,
Change the value of specific bit identified by offset Read more
sourceimpl AsValuesMut for Masked<u8>
impl AsValuesMut for Masked<u8>
sourcefn set(&mut self, id: BitId, val: Option<bool>)
fn set(&mut self, id: BitId, val: Option<bool>)
Set the value of specific bit identified by offset Read more
sourcefn with(self, id: BitId, val: Option<bool>) -> Self where
Self: Sized,
fn with(self, id: BitId, val: Option<bool>) -> Self where
Self: Sized,
Change the value of specific bit identified by offset Read more
impl<Bits: Copy> Copy for Masked<Bits>
impl<Bits: Eq> Eq for Masked<Bits>
impl<Bits> StructuralEq for Masked<Bits>
impl<Bits> StructuralPartialEq for Masked<Bits>
Auto Trait Implementations
impl<Bits> RefUnwindSafe for Masked<Bits> where
Bits: RefUnwindSafe,
impl<Bits> Send for Masked<Bits> where
Bits: Send,
impl<Bits> Sync for Masked<Bits> where
Bits: Sync,
impl<Bits> Unpin for Masked<Bits> where
Bits: Unpin,
impl<Bits> UnwindSafe for Masked<Bits> where
Bits: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more