Struct bit_struct::GetSet
source · [−]Expand description
A struct which allows for getting/setting a given property
Implementations
sourceimpl<'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
sourceimpl<'a, P: Num + Shl<usize, Output = P> + Shr<usize, Output = P> + ShlAssign<usize> + ShrAssign<usize> + Bounded + BitAnd<Output = P> + Copy + BitCount, T: ValidCheck<P>, const START: usize, const STOP: usize> GetSet<'a, P, T, START, STOP>
impl<'a, P: Num + Shl<usize, Output = P> + Shr<usize, Output = P> + ShlAssign<usize> + ShrAssign<usize> + Bounded + BitAnd<Output = P> + Copy + BitCount, T: ValidCheck<P>, const START: usize, const STOP: usize> GetSet<'a, P, T, START, STOP>
Auto Trait Implementations
impl<'a, P, T, const START: usize, const STOP: usize> RefUnwindSafe for GetSet<'a, P, T, START, STOP>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, P, T, const START: usize, const STOP: usize> Send for GetSet<'a, P, T, START, STOP>where
P: Send,
T: Send,
impl<'a, P, T, const START: usize, const STOP: usize> Sync for GetSet<'a, P, T, START, STOP>where
P: Sync,
T: Sync,
impl<'a, P, T, const START: usize, const STOP: usize> Unpin for GetSet<'a, P, T, START, STOP>
impl<'a, P, T, const START: usize, const STOP: usize> !UnwindSafe for GetSet<'a, P, T, START, STOP>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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