pub struct Utxos { /* private fields */ }Implementations§
Source§impl Utxos
impl Utxos
pub fn new() -> Self
pub fn add( &mut self, key: TxHash, value: Vec<(TxIndex, TransactionOutput)>, ) -> Result<(), UtxosError>
pub fn remove(&mut self, key: TxHash, value: TxIndex) -> Result<(), UtxosError>
pub fn iter( &self, ) -> impl Iterator<Item = (&TxHash, &TxIndex, &TransactionOutput)>
Auto Trait Implementations§
impl Freeze for Utxos
impl RefUnwindSafe for Utxos
impl Send for Utxos
impl Sync for Utxos
impl Unpin for Utxos
impl UnwindSafe for Utxos
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more