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
Source§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>
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> Freeze for GetSet<'a, P, T, START, STOP>
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>
impl<'a, P, T, const START: usize, const STOP: usize> Sync for GetSet<'a, P, T, START, STOP>
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§
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