pub struct MemoryTrace { /* private fields */ }Available on (crate features
trace or replay) and crate feature trace only.Implementations§
Trait Implementations§
Source§impl Default for MemoryTrace
impl Default for MemoryTrace
Source§fn default() -> MemoryTrace
fn default() -> MemoryTrace
Returns the “default value” for a type. Read more
Source§impl Trace for MemoryTrace
impl Trace for MemoryTrace
Source§fn make_binary(&mut self, kind: DataKind, data: &[u8]) -> Data
fn make_binary(&mut self, kind: DataKind, data: &[u8]) -> Data
Store [u8] data in the trace.
Using a string kind is probably a bug, but should work as long as the
data is UTF-8.
Source§fn make_string(&mut self, kind: DataKind, data: &str) -> Data
fn make_string(&mut self, kind: DataKind, data: &str) -> Data
Store str data in the trace.
Using a binary kind is fine, but it’s not clear why not use
make_binary instead.
fn add(&mut self, action: Action<'_, PointerReferences>)
Auto Trait Implementations§
impl Freeze for MemoryTrace
impl RefUnwindSafe for MemoryTrace
impl Send for MemoryTrace
impl Sync for MemoryTrace
impl Unpin for MemoryTrace
impl UnsafeUnpin for MemoryTrace
impl UnwindSafe for MemoryTrace
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