pub struct DebugTraceScope<'a> {
pub debug_output: bool,
pub output: String,
/* private fields */
}Expand description
Debug trace scope that caches output.
Fields§
§debug_output: boolDebug output.
output: StringOutput.
Implementations§
Source§impl<'a> DebugTraceScope<'a>
impl<'a> DebugTraceScope<'a>
Sourcepub fn print_data(
&mut self,
description: &str,
offset: u64,
data: &[u8],
data_size: usize,
group: bool,
)
pub fn print_data( &mut self, description: &str, offset: u64, data: &[u8], data_size: usize, group: bool, )
Prints data.
Sourcepub fn print_data_field(&mut self, identifier: &str, data: &[u8])
pub fn print_data_field(&mut self, identifier: &str, data: &[u8])
Prints a data field.
Sourcepub fn print_field<V: Display>(&mut self, identifier: &str, value: V)
pub fn print_field<V: Display>(&mut self, identifier: &str, value: V)
Prints a field.
Sourcepub fn print_start(&mut self, identifier: &str)
pub fn print_start(&mut self, identifier: &str)
Prints the start of a trace.
Sourcepub fn print_structure(
&mut self,
debug_read_data: fn(&[u8]) -> String,
data: &[u8],
)
pub fn print_structure( &mut self, debug_read_data: fn(&[u8]) -> String, data: &[u8], )
Prints a structure representation.
Sourcepub fn print_value<V: Display>(&mut self, description: &str, value: V)
pub fn print_value<V: Display>(&mut self, description: &str, value: V)
Prints a value.
Auto Trait Implementations§
impl<'a> Freeze for DebugTraceScope<'a>
impl<'a> RefUnwindSafe for DebugTraceScope<'a>
impl<'a> Send for DebugTraceScope<'a>
impl<'a> Sync for DebugTraceScope<'a>
impl<'a> Unpin for DebugTraceScope<'a>
impl<'a> UnsafeUnpin for DebugTraceScope<'a>
impl<'a> UnwindSafe for DebugTraceScope<'a>
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