Module ergo_headless_dapp_framework::box_traits
source · [−]Traits
A trait which is implemented via deriving the procedural macro SpecBox
.
This trait wraps the below methods from BoxSpec
but instead returns
the Self
struct that implements SpecifiedBox
improving the dev
experience.
A separate trait + using a proc macro was required due to a few
intricacies of Rust’s trait/type system
A trait which represents an ErgoBox
wrapped in an overarching struct.