Struct stackdump_core::memory_region::SliceMemoryRegion
source · [−]pub struct SliceMemoryRegion<'a> { /* private fields */ }
Expand description
A memory region that is backed by a slice
Implementations
Trait Implementations
sourceimpl<'a> Clone for SliceMemoryRegion<'a>
impl<'a> Clone for SliceMemoryRegion<'a>
sourcefn clone(&self) -> SliceMemoryRegion<'a>
fn clone(&self) -> SliceMemoryRegion<'a>
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<'a> Debug for SliceMemoryRegion<'a>
impl<'a> Debug for SliceMemoryRegion<'a>
sourceimpl<'a> Default for SliceMemoryRegion<'a>
impl<'a> Default for SliceMemoryRegion<'a>
sourcefn default() -> SliceMemoryRegion<'a>
fn default() -> SliceMemoryRegion<'a>
Returns the “default value” for a type. Read more
sourceimpl<'de: 'a, 'a> Deserialize<'de> for SliceMemoryRegion<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SliceMemoryRegion<'a>
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> MemoryRegion for SliceMemoryRegion<'a>
impl<'a> MemoryRegion for SliceMemoryRegion<'a>
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)
This function is especially unsafe. The memory region will still reference the given data for its entire lifetime.
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
sourceimpl<'a> PartialEq<SliceMemoryRegion<'a>> for SliceMemoryRegion<'a>
impl<'a> PartialEq<SliceMemoryRegion<'a>> for SliceMemoryRegion<'a>
sourcefn eq(&self, other: &SliceMemoryRegion<'a>) -> bool
fn eq(&self, other: &SliceMemoryRegion<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SliceMemoryRegion<'a>) -> bool
fn ne(&self, other: &SliceMemoryRegion<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> Serialize for SliceMemoryRegion<'a>
impl<'a> Serialize for SliceMemoryRegion<'a>
impl<'a> StructuralPartialEq for SliceMemoryRegion<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SliceMemoryRegion<'a>
impl<'a> Send for SliceMemoryRegion<'a>
impl<'a> Sync for SliceMemoryRegion<'a>
impl<'a> Unpin for SliceMemoryRegion<'a>
impl<'a> UnwindSafe for SliceMemoryRegion<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more