pub struct ConsumableUtxo(/* private fields */);Implementations§
Source§impl ConsumableUtxo
impl ConsumableUtxo
pub fn new(outs: Vec<(TxIndex, TransactionOutput)>) -> Self
pub fn is_consumable(&self, index: TxIndex) -> bool
pub fn consume(&mut self, index: TxIndex) -> Result<(), ()>
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&TxIndex, &TransactionOutput)>
Auto Trait Implementations§
impl Freeze for ConsumableUtxo
impl RefUnwindSafe for ConsumableUtxo
impl Send for ConsumableUtxo
impl Sync for ConsumableUtxo
impl Unpin for ConsumableUtxo
impl UnwindSafe for ConsumableUtxo
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