Enum probe_rs_target::MemoryRegion
source · pub enum MemoryRegion {
Ram(RamRegion),
Generic(GenericRegion),
Nvm(NvmRegion),
}
Expand description
Declares the type of a memory region.
Variants§
Ram(RamRegion)
Memory region describing RAM.
Generic(GenericRegion)
Generic memory region, which is neither flash nor RAM.
Nvm(NvmRegion)
Memory region describing flash, EEPROM or other non-volatile memory.
Implementations§
source§impl MemoryRegion
impl MemoryRegion
sourcepub fn as_ram_region(&self) -> Option<&RamRegion>
pub fn as_ram_region(&self) -> Option<&RamRegion>
Returns the RAM region if this is a RAM region, otherwise None.
sourcepub fn as_nvm_region(&self) -> Option<&NvmRegion>
pub fn as_nvm_region(&self) -> Option<&NvmRegion>
Returns the NVM region if this is a NVM region, otherwise None.
sourcepub fn address_range(&self) -> Range<u64>
pub fn address_range(&self) -> Range<u64>
Returns the address range of the memory region.
Trait Implementations§
source§impl Clone for MemoryRegion
impl Clone for MemoryRegion
source§fn clone(&self) -> MemoryRegion
fn clone(&self) -> MemoryRegion
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 MemoryRegion
impl Debug for MemoryRegion
source§impl<'de> Deserialize<'de> for MemoryRegion
impl<'de> Deserialize<'de> for MemoryRegion
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for MemoryRegion
impl Hash for MemoryRegion
source§impl PartialEq for MemoryRegion
impl PartialEq for MemoryRegion
source§fn eq(&self, other: &MemoryRegion) -> bool
fn eq(&self, other: &MemoryRegion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemoryRegion
impl Serialize for MemoryRegion
impl Eq for MemoryRegion
impl StructuralPartialEq for MemoryRegion
Auto Trait Implementations§
impl Freeze for MemoryRegion
impl RefUnwindSafe for MemoryRegion
impl Send for MemoryRegion
impl Sync for MemoryRegion
impl Unpin for MemoryRegion
impl UnwindSafe for MemoryRegion
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