Trait bitcoin::util::psbt::Map [−][src]
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>[src]
Attempt to insert a key-value pair.
fn get_pairs(&self) -> Result<Vec<Pair>, Error>[src]
Attempt to get all key-value pairs.
fn merge(&mut self, other: Self) -> Result<(), Error>[src]
Attempt to merge with another key-value map of the same type.