Struct tokio_gpiod::Masked
source · #[repr(C)]pub struct Masked<Bits> {
pub bits: Bits,
pub mask: Bits,
}
Expand description
Line values with mask
Fields§
§bits: Bits
Logic values of lines
mask: Bits
Mask of lines to get or set
Trait Implementations§
source§impl AsValues for Masked<u16>
impl AsValues for Masked<u16>
fn bits(&self) -> u8
source§fn get(&self, id: u8) -> Option<bool>
fn get(&self, id: u8) -> Option<bool>
Get the value of specific bit identified by offset Read more
source§fn 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
source§fn convert<T>(&self) -> Twhere
T: AsValuesMut + Default,
fn convert<T>(&self) -> Twhere
T: AsValuesMut + Default,
Convert to another representation
source§impl AsValues for Masked<u32>
impl AsValues for Masked<u32>
fn bits(&self) -> u8
source§fn get(&self, id: u8) -> Option<bool>
fn get(&self, id: u8) -> Option<bool>
Get the value of specific bit identified by offset Read more
source§fn 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
source§fn convert<T>(&self) -> Twhere
T: AsValuesMut + Default,
fn convert<T>(&self) -> Twhere
T: AsValuesMut + Default,
Convert to another representation
source§impl AsValues for Masked<u64>
impl AsValues for Masked<u64>
fn bits(&self) -> u8
source§fn get(&self, id: u8) -> Option<bool>
fn get(&self, id: u8) -> Option<bool>
Get the value of specific bit identified by offset Read more
source§fn 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
source§fn convert<T>(&self) -> Twhere
T: AsValuesMut + Default,
fn convert<T>(&self) -> Twhere
T: AsValuesMut + Default,
Convert to another representation
source§impl AsValues for Masked<u8>
impl AsValues for Masked<u8>
fn bits(&self) -> u8
source§fn get(&self, id: u8) -> Option<bool>
fn get(&self, id: u8) -> Option<bool>
Get the value of specific bit identified by offset Read more
source§fn 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
source§fn convert<T>(&self) -> Twhere
T: AsValuesMut + Default,
fn convert<T>(&self) -> Twhere
T: AsValuesMut + Default,
Convert to another representation
source§impl AsValuesMut for Masked<u16>
impl AsValuesMut for Masked<u16>
source§fn set(&mut self, id: u8, val: Option<bool>)
fn set(&mut self, id: u8, val: Option<bool>)
Set the value of specific bit identified by offset Read more
source§fn with(self, id: u8, val: Option<bool>) -> Selfwhere
Self: Sized,
fn with(self, id: u8, val: Option<bool>) -> Selfwhere
Self: Sized,
Change the value of specific bit identified by offset Read more
source§impl AsValuesMut for Masked<u32>
impl AsValuesMut for Masked<u32>
source§fn set(&mut self, id: u8, val: Option<bool>)
fn set(&mut self, id: u8, val: Option<bool>)
Set the value of specific bit identified by offset Read more
source§fn with(self, id: u8, val: Option<bool>) -> Selfwhere
Self: Sized,
fn with(self, id: u8, val: Option<bool>) -> Selfwhere
Self: Sized,
Change the value of specific bit identified by offset Read more
source§impl AsValuesMut for Masked<u64>
impl AsValuesMut for Masked<u64>
source§fn set(&mut self, id: u8, val: Option<bool>)
fn set(&mut self, id: u8, val: Option<bool>)
Set the value of specific bit identified by offset Read more
source§fn with(self, id: u8, val: Option<bool>) -> Selfwhere
Self: Sized,
fn with(self, id: u8, val: Option<bool>) -> Selfwhere
Self: Sized,
Change the value of specific bit identified by offset Read more
source§impl AsValuesMut for Masked<u8>
impl AsValuesMut for Masked<u8>
source§fn set(&mut self, id: u8, val: Option<bool>)
fn set(&mut self, id: u8, val: Option<bool>)
Set the value of specific bit identified by offset Read more
source§fn with(self, id: u8, val: Option<bool>) -> Selfwhere
Self: Sized,
fn with(self, id: u8, val: Option<bool>) -> Selfwhere
Self: Sized,
Change the value of specific bit identified by offset Read more
source§impl<Bits> PartialEq for Masked<Bits>where
Bits: PartialEq,
impl<Bits> PartialEq for Masked<Bits>where
Bits: PartialEq,
impl<Bits> Copy for Masked<Bits>where
Bits: Copy,
impl<Bits> Eq for Masked<Bits>where
Bits: Eq,
impl<Bits> StructuralPartialEq for Masked<Bits>
Auto Trait Implementations§
impl<Bits> Freeze for Masked<Bits>where
Bits: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more