pub struct GetSet<'a, P, T, const START: usize, const STOP: usize> { /* fields omitted */ }
Expand description
A struct which allows for getting/setting a given property
impl<'a, P, T, const START: usize, const STOP: usize> GetSet<'a, P, T, START, STOP>
Create a new GetSet. This should be called from methods generated by
the bit_struct macro
Get the property. Returns an error it does not exist.
Set the property with a core::mem::transmute_copy
Set the field to a raw value.
value must be a valid representation of the field. i.e.,
core::mem::transmute
between P and T must be defined.
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<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.