#[derive(StackError)]
{
// Attributes available to this derive:
#[stack]
}
Expand description
Derives the StackError trait for a struct or enum.
Requires a Location field in every struct/variant (added automatically
by #[suzunari_error]). The location field is resolved by:
#[stack(location)]marker — highest priority, supports any field name- Single field of type
Location— automatic fallback - Error if neither is found
When using #[suzunari_error], #[suzu(location)] on a field becomes
#[stack(location)] + #[snafu(implicit)].
Also generates From<T> for BoxedStackError when the alloc feature is enabled.