Enum cameleon_impl::memory::AccessRight
source · 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 copy 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<AccessRight> for AccessRight
impl PartialEq<AccessRight> for AccessRight
source§fn eq(&self, other: &AccessRight) -> bool
fn eq(&self, other: &AccessRight) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AccessRight
impl Eq for AccessRight
impl StructuralEq for AccessRight
impl StructuralPartialEq for AccessRight
Auto Trait Implementations§
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