Enum minidump::UnifiedMemory
source · pub enum UnifiedMemory<'a, 'mdmp> {
Memory(&'a MinidumpMemory<'mdmp>),
Memory64(&'a MinidumpMemory64<'mdmp>),
}
Expand description
Provides a unified interface for MinidumpMemory and MinidumpMemory64
Variants§
Memory(&'a MinidumpMemory<'mdmp>)
Memory64(&'a MinidumpMemory64<'mdmp>)
Implementations§
source§impl<'a, 'mdmp> UnifiedMemory<'a, 'mdmp>
impl<'a, 'mdmp> UnifiedMemory<'a, 'mdmp>
pub fn get_memory_at_address<T>(&self, addr: u64) -> Option<T>
pub fn memory_range(&self) -> Option<Range<u64>>
pub fn bytes(&self) -> &'a [u8] ⓘ
pub fn base_address(&self) -> u64
pub fn size(&self) -> u64
pub fn print_contents<T: Write>(&self, f: &mut T) -> Result<()>
pub fn print<T: Write>(&self, f: &mut T, brief: bool) -> Result<()>
Trait Implementations§
source§impl<'a, 'mdmp> Clone for UnifiedMemory<'a, 'mdmp>
impl<'a, 'mdmp> Clone for UnifiedMemory<'a, 'mdmp>
source§fn clone(&self) -> UnifiedMemory<'a, 'mdmp>
fn clone(&self) -> UnifiedMemory<'a, 'mdmp>
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<'a, 'mdmp> Debug for UnifiedMemory<'a, 'mdmp>
impl<'a, 'mdmp> Debug for UnifiedMemory<'a, 'mdmp>
impl<'a, 'mdmp> Copy for UnifiedMemory<'a, 'mdmp>
Auto Trait Implementations§
impl<'a, 'mdmp> RefUnwindSafe for UnifiedMemory<'a, 'mdmp>
impl<'a, 'mdmp> Send for UnifiedMemory<'a, 'mdmp>
impl<'a, 'mdmp> Sync for UnifiedMemory<'a, 'mdmp>
impl<'a, 'mdmp> Unpin for UnifiedMemory<'a, 'mdmp>
impl<'a, 'mdmp> UnwindSafe for UnifiedMemory<'a, 'mdmp>
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