[][src]Trait bitcoin::util::psbt::Map

pub trait Map {
    fn insert_pair(&mut self, pair: Pair) -> Result<(), Error>;
fn get_pairs(&self) -> Result<Vec<Pair>, Error>;
fn merge(&mut self, other: Self) -> Result<(), Error>; }

A trait that describes a PSBT key-value map.

Required methods

fn insert_pair(&mut self, pair: Pair) -> Result<(), Error>

Attempt to insert a key-value pair.

fn get_pairs(&self) -> Result<Vec<Pair>, Error>

Attempt to get all key-value pairs.

fn merge(&mut self, other: Self) -> Result<(), Error>

Attempt to merge with another key-value map of the same type.

Loading content...

Implementors

impl Map for Global[src]

impl Map for Input[src]

impl Map for Output[src]

Loading content...