pub trait OutputView: Debug {
// Required methods
fn value(&self) -> Zatoshis;
fn script_pubkey(&self) -> &Script;
// Provided method
fn serialized_size(&self) -> usize { ... }
}Expand description
This trait provides a minimized view of a transparent output suitable for use in fee and change computation.
Required Methods§
Sourcefn script_pubkey(&self) -> &Script
fn script_pubkey(&self) -> &Script
Returns the script corresponding to the newly created output.
Provided Methods§
Sourcefn serialized_size(&self) -> usize
fn serialized_size(&self) -> usize
Returns the serialized size of the txout.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".