Struct stackdump_core::memory_region::ArrayMemoryRegion
source · [−]pub struct ArrayMemoryRegion<const SIZE: usize> { /* private fields */ }
Expand description
A memory region that is backed by a stack allocated array
Implementations
sourceimpl<const SIZE: usize> ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> ArrayMemoryRegion<SIZE>
Trait Implementations
sourceimpl<const SIZE: usize> Clone for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> Clone for ArrayMemoryRegion<SIZE>
sourcefn clone(&self) -> ArrayMemoryRegion<SIZE>
fn clone(&self) -> ArrayMemoryRegion<SIZE>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<const SIZE: usize> Debug for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> Debug for ArrayMemoryRegion<SIZE>
sourceimpl<const SIZE: usize> Default for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> Default for ArrayMemoryRegion<SIZE>
sourcefn default() -> ArrayMemoryRegion<SIZE>
fn default() -> ArrayMemoryRegion<SIZE>
Returns the “default value” for a type. Read more
sourceimpl<'de, const SIZE: usize> Deserialize<'de> for ArrayMemoryRegion<SIZE>
impl<'de, const SIZE: usize> Deserialize<'de> for ArrayMemoryRegion<SIZE>
sourcefn 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
sourceimpl<'a, const SIZE: usize> FromIterator<&'a u8> for ArrayMemoryRegion<SIZE>
impl<'a, const SIZE: usize> FromIterator<&'a u8> for ArrayMemoryRegion<SIZE>
sourcefn from_iter<T: IntoIterator<Item = &'a u8>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = &'a u8>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl<const SIZE: usize> FromIterator<u8> for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> FromIterator<u8> for ArrayMemoryRegion<SIZE>
sourcefn from_iter<T: IntoIterator<Item = u8>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = u8>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl<const SIZE: usize> MemoryRegion for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> MemoryRegion for ArrayMemoryRegion<SIZE>
sourcefn address_range(&self) -> Range<u64>
fn address_range(&self) -> Range<u64>
The address range of the region where the start is the first address that the region captures
sourcefn read_slice(&self, index: Range<u64>) -> Option<&[u8]>
fn read_slice(&self, index: Range<u64>) -> Option<&[u8]>
Returns the slice of memory that can be found at the given address_range. If the given address range is not fully within the captured region, then None is returned. Read more
sourcefn bytes(&self) -> MemoryRegionIterator<'_>ⓘNotable traits for MemoryRegionIterator<'a>impl<'a> Iterator for MemoryRegionIterator<'a> type Item = u8;
fn bytes(&self) -> MemoryRegionIterator<'_>ⓘNotable traits for MemoryRegionIterator<'a>impl<'a> Iterator for MemoryRegionIterator<'a> type Item = u8;
Get a byte iterator for this region. Read more
sourceunsafe fn copy_from_memory(&mut self, data_ptr: *const u8, data_len: usize)
unsafe fn copy_from_memory(&mut self, data_ptr: *const u8, data_len: usize)
Clears the existing memory data and copies the new data from the given pointer Read more
sourceimpl<const SIZE: usize> PartialEq<ArrayMemoryRegion<SIZE>> for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> PartialEq<ArrayMemoryRegion<SIZE>> for ArrayMemoryRegion<SIZE>
sourcefn eq(&self, other: &ArrayMemoryRegion<SIZE>) -> bool
fn eq(&self, other: &ArrayMemoryRegion<SIZE>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ArrayMemoryRegion<SIZE>) -> bool
fn ne(&self, other: &ArrayMemoryRegion<SIZE>) -> bool
This method tests for !=
.
sourceimpl<const SIZE: usize> Serialize for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> Serialize for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> StructuralPartialEq for ArrayMemoryRegion<SIZE>
Auto Trait Implementations
impl<const SIZE: usize> RefUnwindSafe for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> Send for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> Sync for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> Unpin for ArrayMemoryRegion<SIZE>
impl<const SIZE: usize> UnwindSafe for ArrayMemoryRegion<SIZE>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more