Struct proc_bitfield::example::AccessRestrictions
source · [−]pub struct AccessRestrictions(pub u8);
Expand description
A bitfield showcasing how to specify access restrictions.
Tuple Fields
0: u8
Implementations
sourceimpl AccessRestrictions
impl AccessRestrictions
pub fn read_only_flag(&self) -> bool
pub fn with_write_only_flag(self, value: bool) -> Self
pub fn set_write_only_flag(&mut self, value: bool)
pub fn read_write_flag(&self) -> bool
pub fn with_read_write_flag(self, value: bool) -> Self
pub fn set_read_write_flag(&mut self, value: bool)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AccessRestrictions
impl Send for AccessRestrictions
impl Sync for AccessRestrictions
impl Unpin for AccessRestrictions
impl UnwindSafe for AccessRestrictions
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