Trait SubstackBehavior

Source
pub trait SubstackBehavior {
    const USES_SUBSTACK: bool;
}
Expand description

This trait allows the compiler to optimize away Substack-related code for formats with span types that don’t use subspans, making it zero-cost.

Required Associated Constants§

Source

const USES_SUBSTACK: bool

Whether to use subspans in the deserialize_wip instruction stack loop.

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.

Implementors§