Struct bit_struct::GetSet
source · pub struct GetSet<'a, P, T, const START: usize, const STOP: usize> { /* private fields */ }
Expand description
A struct which allows for getting/setting a given property
Implementations§
source§impl<'a, P: Num + Bounded + ShlAssign<usize> + ShrAssign<usize> + BitCount, T, const START: usize, const STOP: usize> GetSet<'a, P, T, START, STOP>
impl<'a, P: Num + Bounded + ShlAssign<usize> + ShrAssign<usize> + BitCount, T, const START: usize, const STOP: usize> GetSet<'a, P, T, START, STOP>
sourcepub fn new(parent: &'a mut P) -> Self
pub fn new(parent: &'a mut P) -> Self
Create a new GetSet
. This should be called from methods generated by
the bit_struct
macro