Traits§
- Error
ToString - C++
errorToString<T>is anif constexprswitch over the concrete error type. Rust models the per-type compile-time dispatch with a trait implemented once per error record; the generic function delegates to it.
errorToString<T> is an if constexpr switch over the concrete error
type. Rust models the per-type compile-time dispatch with a trait
implemented once per error record; the generic function delegates to it.