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 ==.