pub struct DebugTrace {}Expand description
Debug trace.
Implementations§
Source§impl DebugTrace
impl DebugTrace
Sourcepub fn print_data(
description: &str,
offset: u64,
data: &[u8],
data_size: usize,
group: bool,
)
pub fn print_data( description: &str, offset: u64, data: &[u8], data_size: usize, group: bool, )
Prints data.
Sourcepub fn print_data_field(identifier: &str, data: &[u8])
pub fn print_data_field(identifier: &str, data: &[u8])
Prints a data field.
Sourcepub fn print_field<V: Display>(identifier: &str, value: V)
pub fn print_field<V: Display>(identifier: &str, value: V)
Prints a field.
Sourcepub fn print_start(identifier: &str)
pub fn print_start(identifier: &str)
Prints the start of a trace.
Sourcepub fn print_structure(debug_read_data: fn(&[u8]) -> String, data: &[u8])
pub fn print_structure(debug_read_data: fn(&[u8]) -> String, data: &[u8])
Prints a structure representation.
Sourcepub fn print_value<V: Display>(description: &str, value: V)
pub fn print_value<V: Display>(description: &str, value: V)
Prints a value.
Sourcepub fn scope<F, R, E>(function: F) -> Result<R, E>
pub fn scope<F, R, E>(function: F) -> Result<R, E>
Creates a debug trace scope that caches output.
Sourcepub fn static_scope<F>(function: F)where
F: FnOnce(&DebugTraceStaticScope<'_>),
pub fn static_scope<F>(function: F)where
F: FnOnce(&DebugTraceStaticScope<'_>),
Creates a debug trace scope.
Auto Trait Implementations§
impl Freeze for DebugTrace
impl RefUnwindSafe for DebugTrace
impl Send for DebugTrace
impl Sync for DebugTrace
impl Unpin for DebugTrace
impl UnsafeUnpin for DebugTrace
impl UnwindSafe for DebugTrace
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