pub struct Telemetry {
pub total_comparisons: u64,
pub total_moves: u64,
pub memory_current: usize,
pub memory_peak: usize,
pub highlights: Vec<usize>,
pub markers: Markers,
pub status_text: String,
pub progress_hint: f32,
}
Expand description
Telemetry data returned after each step
Fields§
§total_comparisons: u64
Total comparisons so far
total_moves: u64
Total moves so far
memory_current: usize
Current auxiliary memory usage in bytes
memory_peak: usize
Peak auxiliary memory usage in bytes
highlights: Vec<usize>
Indices to highlight in visualization
markers: Markers
Algorithm-specific markers
status_text: String
Human-readable description of current operation
progress_hint: f32
Progress estimate (0.0 to 1.0)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Telemetry
impl RefUnwindSafe for Telemetry
impl Send for Telemetry
impl Sync for Telemetry
impl Unpin for Telemetry
impl UnwindSafe for Telemetry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more