pub trait BacktraceExt {
// Required method
fn map_in_tuple_to_field(self, fields: &[&'static str]) -> Self;
}
Expand description
Additional function for everything having a Backtrace.
Required Methods§
Sourcefn map_in_tuple_to_field(self, fields: &[&'static str]) -> Self
fn map_in_tuple_to_field(self, fields: &[&'static str]) -> Self
Map last tuple entry into a field. Does nothing if last entry is not a tuple. As in Solidity structs are equivalent to tuples and are tricky to parse correctly, it allows to parse any struct as a tuple (with the correct implementation in this crate) and then map tuple indices to struct fields.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.