Trait tract_pulse::internal::fmt::Debug   1.0.0[−][src]
Expand description
? formatting.
Debug should format the output in a programmer-facing, debugging context.
Generally speaking, you should just derive a Debug implementation.
When used with the alternate format specifier #?, the output is pretty-printed.
For more information on formatters, see the module-level documentation.
This trait can be used with #[derive] if all fields implement Debug. When
derived for structs, it will use the name of the struct, then {, then a
comma-separated list of each field’s name and Debug value, then }. For
enums, it will use the name of the variant and, if applicable, (, then the
Debug values of the fields, then ).
Stability
Derived Debug formats are not stable, and so may change with future Rust
versions. Additionally, Debug implementations of types provided by the
standard library (libstd, libcore, liballoc, etc.) are not stable, and
may also change with future Rust versions.
Examples
Deriving an implementation:
#[derive(Debug)]
struct Point {
    x: i32,
    y: i32,
}
let origin = Point { x: 0, y: 0 };
assert_eq!(format!("The origin is: {:?}", origin), "The origin is: Point { x: 0, y: 0 }");Manually implementing:
use std::fmt;
struct Point {
    x: i32,
    y: i32,
}
impl fmt::Debug for Point {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        f.debug_struct("Point")
         .field("x", &self.x)
         .field("y", &self.y)
         .finish()
    }
}
let origin = Point { x: 0, y: 0 };
assert_eq!(format!("The origin is: {:?}", origin), "The origin is: Point { x: 0, y: 0 }");There are a number of helper methods on the Formatter struct to help you with manual
implementations, such as debug_struct.
Debug implementations using either derive or the debug builder API
on Formatter support pretty-printing using the alternate flag: {:#?}.
Pretty-printing with #?:
#[derive(Debug)]
struct Point {
    x: i32,
    y: i32,
}
let origin = Point { x: 0, y: 0 };
assert_eq!(format!("The origin is: {:#?}", origin),
"The origin is: Point {
    x: 0,
    y: 0,
}");Required methods
Formats the value using the given formatter.
Examples
use std::fmt;
struct Position {
    longitude: f32,
    latitude: f32,
}
impl fmt::Debug for Position {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        f.debug_tuple("")
         .field(&self.longitude)
         .field(&self.latitude)
         .finish()
    }
}
let position = Position { longitude: 1.987, latitude: 2.983 };
assert_eq!(format!("{:?}", position), "(1.987, 2.983)");
assert_eq!(format!("{:#?}", position), "(
    1.987,
    2.983,
)");Implementations on Foreign Types
impl<'h, 'n> Debug for FindIter<'h, 'n>
impl<'h, 'n> Debug for FindIter<'h, 'n>
impl<'h, 'n> Debug for FindRevIter<'h, 'n>
impl<'h, 'n> Debug for FindRevIter<'h, 'n>
impl Debug for UnsupportedPlatformError
impl Debug for UnsupportedPlatformError
Implementors
impl Debug for AttrOrInput
impl Debug for Validation
impl Debug for ConcatSlice
impl Debug for KernelFormat
impl Debug for PaddingSpec
impl Debug for ProtoFusedSpec
impl Debug for QParamKind
impl Debug for tract_pulse::internal::tract_core::ops::nn::DataFormat
impl Debug for CollectionAllocErr
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::net::SocketAddr
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::sync::atomic::Ordering
impl Debug for InputStore
impl Debug for InputStoreKer
impl Debug for InputStoreSpec
impl Debug for OutputStoreSpec
impl Debug for RoundingPolicy
impl Debug for InputMapping
impl Debug for StateInitializer
impl Debug for AxisChange
impl Debug for AxisChangeConsequence
impl Debug for AxisTracking
impl Debug for FragmentDecl
impl Debug for FragmentDef
impl Debug for Invariants
impl Debug for SessionState
impl Debug for SymbolValues
impl Debug for FiniteReshape
impl Debug for GatherElements
impl Debug for MultiBroadcastTo
impl Debug for ScatterElements
impl Debug for TypedConcat
impl Debug for MergeOpUnicast
impl Debug for TypedBinOp
impl Debug for ConcretePoolGeometry
impl Debug for SymbolicPoolGeometry
impl Debug for DeconvUnary
impl Debug for ElementWiseOp
impl Debug for GreaterEqual
impl Debug for LesserEqual
impl Debug for FlippedPow
impl Debug for FlippedShiftLeft
impl Debug for FlippedShiftRight
impl Debug for RoundHalfToEven
impl Debug for ShiftRight
impl Debug for ConcreteMatMulGeometry
impl Debug for LirMatMulUnary
impl Debug for SymbolicMatMulGeometry
impl Debug for QMatMulUnary
impl Debug for MatMatMulPack
impl Debug for MatMulQParams
impl Debug for MatMulUnary
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::fmt::Error
impl Debug for UndeterminedSymbol
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::ascii::EscapeDefault
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::char::EscapeDebug
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::char::EscapeDefault
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::char::EscapeUnicode
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::fs::DirEntry
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::fs::Metadata
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::io::Empty
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::io::Repeat
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::num::ParseFloatError
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::os::unix::net::SocketAddr
impl Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::sync::Once
impl Debug for OutputStore
impl Debug for OutputStoreKer
impl Debug for PackedStore
impl Debug for PackedStoreKer
impl Debug for PackedStoreSpec
impl Debug for MatMatMulF32x16x6
impl Debug for MatMatMulF32x64x1
impl Debug for MatMatMulI8x8x8
impl Debug for MatMatMulI8xI32x8x8
impl Debug for SigmoidF32
impl Debug for IntoTranslator
impl Debug for DequantizeLinearF32
impl Debug for LookupTable
impl Debug for OffsetU8asI8
impl Debug for QuantizeLinearI8
impl Debug for QuantizeLinearU8
impl Debug for SourceState
impl Debug for TypedSource
impl Debug for Downsample
impl Debug for UnimplementedOp
impl Debug for ChangeAxes
impl<'_> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::string::Drain<'_>
impl<'_> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::path::Iter<'_>
impl<'_, K> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_set::Drain<'_, K> where
    K: Debug, 
impl<'_, K> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_set::Iter<'_, K> where
    K: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::Entry<'_, K, V> where
    K: Debug + Ord,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_map::Entry<'_, K, V> where
    K: Debug,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::Iter<'_, K, V> where
    K: Debug,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::IterMut<'_, K, V> where
    K: Debug,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::Keys<'_, K, V> where
    K: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::OccupiedEntry<'_, K, V> where
    K: Debug + Ord,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::OccupiedError<'_, K, V> where
    K: Debug + Ord,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::Range<'_, K, V> where
    K: Debug,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::VacantEntry<'_, K, V> where
    K: Debug + Ord, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::Values<'_, K, V> where
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::ValuesMut<'_, K, V> where
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_map::Drain<'_, K, V> where
    K: Debug,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_map::Iter<'_, K, V> where
    K: Debug,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_map::IterMut<'_, K, V> where
    K: Debug,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_map::Keys<'_, K, V> where
    K: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_map::OccupiedEntry<'_, K, V> where
    K: Debug,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_map::OccupiedError<'_, K, V> where
    K: Debug,
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_map::VacantEntry<'_, K, V> where
    K: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_map::Values<'_, K, V> where
    V: Debug, 
impl<'_, K, V> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_map::ValuesMut<'_, K, V> where
    V: Debug, 
impl<'_, K, V, F> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_map::DrainFilter<'_, K, V, F> where
    K: Debug,
    V: Debug,
    F: FnMut(&K, &mut V) -> bool, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::binary_heap::Iter<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_set::Difference<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_set::Intersection<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_set::Iter<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_set::SymmetricDifference<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_set::Union<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::linked_list::Cursor<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::linked_list::Iter<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::linked_list::IterMut<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::vec_deque::Iter<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::vec_deque::IterMut<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::slice::Iter<'_, T> where
    T: Debug, 
impl<'_, T> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::slice::IterMut<'_, T> where
    T: Debug, 
impl<'_, T, A> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::vec_deque::Drain<'_, T, A> where
    T: Debug,
    A: Allocator, 
impl<'_, T, A> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::vec::Drain<'_, T, A> where
    T: Debug,
    A: Allocator, 
impl<'_, T, F> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::btree_set::DrainFilter<'_, T, F> where
    T: Debug,
    F: FnMut(&T) -> bool, 
impl<'_, T, F> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::collections::linked_list::DrainFilter<'_, T, F> where
    T: Debug,
    F: FnMut(&mut T) -> bool, 
impl<'_, T, P> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::slice::RSplit<'_, T, P> where
    T: Debug,
    P: FnMut(&T) -> bool, 
impl<'_, T, P> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::slice::RSplitN<'_, T, P> where
    T: Debug,
    P: FnMut(&T) -> bool, 
impl<'_, T, P> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::slice::Split<'_, T, P> where
    T: Debug,
    P: FnMut(&T) -> bool, 
impl<'_, T, P> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::slice::SplitN<'_, T, P> where
    T: Debug,
    P: FnMut(&T) -> bool, 
impl<'_, T, S> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_set::Difference<'_, T, S> where
    T: Debug + Eq + Hash,
    S: BuildHasher, 
impl<'_, T, S> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_set::Intersection<'_, T, S> where
    T: Debug + Eq + Hash,
    S: BuildHasher, 
impl<'_, T, S> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_set::SymmetricDifference<'_, T, S> where
    T: Debug + Eq + Hash,
    S: BuildHasher, 
impl<'_, T, S> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::collections::hash_set::Union<'_, T, S> where
    T: Debug + Eq + Hash,
    S: BuildHasher, 
impl<'a> Debug for TensorView<'a>
impl<'a> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::str::Bytes<'a>
impl<'a> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::str::EscapeDebug<'a>
impl<'a> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::str::EscapeDefault<'a>
impl<'a> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::str::EscapeUnicode<'a>
impl<'a> Debug for tract_pulse::internal::tract_core::ops::nn::tract_data::internal::tract_smallvec::alloc::str::Lines<'a>
impl<'a> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::error::Chain<'a>
impl<'a> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::net::Incoming<'a>
impl<'a> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::os::unix::net::Incoming<'a>
impl<'a, A> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::option::Iter<'a, A> where
    A: 'a + Debug, 
impl<'a, A> Debug for tract_pulse::internal::tract_core::ops::nn::tract_downcast_rs::__std::option::IterMut<'a, A> where
    A: 'a + Debug, 
Format the array using Debug and apply the formatting parameters used
to each element.
The array is shown in multiline style.