pub enum AccessRight {
NA,
RO,
WO,
RW,
}
Expand description
Represent access right of each memory cell.
Variants§
Implementations§
Source§impl AccessRight
impl AccessRight
pub const fn is_readable(self) -> bool
pub const fn is_writable(self) -> bool
pub const fn as_str(self) -> &'static str
Trait Implementations§
Source§impl Clone for AccessRight
impl Clone for AccessRight
Source§fn clone(&self) -> AccessRight
fn clone(&self) -> AccessRight
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AccessRight
impl Debug for AccessRight
Source§impl PartialEq for AccessRight
impl PartialEq for AccessRight
impl Copy for AccessRight
impl Eq for AccessRight
impl StructuralPartialEq for AccessRight
Auto Trait Implementations§
impl Freeze for AccessRight
impl RefUnwindSafe for AccessRight
impl Send for AccessRight
impl Sync for AccessRight
impl Unpin for AccessRight
impl UnwindSafe for AccessRight
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