Trait IntoToplevel
pub trait IntoToplevel: Sized {
type Toplevel: TransactionType + From<Self>;
}Expand description
A trait that allows the leaf tx types to state their toplevel type. This enables type inference on TransactionBuilder::with_tx etc.
Required Associated Types§
type Toplevel: TransactionType + From<Self>
type Toplevel: TransactionType + From<Self>
Toplevel type this (leaf) transaction type belongs to
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.