pub struct ArrayDebugger;Expand description
Array debugging utilities
Implementations§
Source§impl ArrayDebugger
impl ArrayDebugger
Sourcepub fn array_shape_info(shape: &[usize]) -> String
pub fn array_shape_info(shape: &[usize]) -> String
Debug array shape for multidimensional arrays
Sourcepub fn compare_arrays<T: PartialEq + Debug>(a: &[T], b: &[T]) -> Vec<String>
pub fn compare_arrays<T: PartialEq + Debug>(a: &[T], b: &[T]) -> Vec<String>
Find array differences for debugging
Sourcepub fn check_float_array(array: &[f64]) -> Vec<String>
pub fn check_float_array(array: &[f64]) -> Vec<String>
Check for NaN and infinite values in float arrays
Auto Trait Implementations§
impl Freeze for ArrayDebugger
impl RefUnwindSafe for ArrayDebugger
impl Send for ArrayDebugger
impl Sync for ArrayDebugger
impl Unpin for ArrayDebugger
impl UnwindSafe for ArrayDebugger
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> 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