pub struct MemUtxos { /* private fields */ }Trait Implementations§
Source§impl<'de> Deserialize<'de> for MemUtxos
impl<'de> Deserialize<'de> for MemUtxos
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl UtxoSet for MemUtxos
impl UtxoSet for MemUtxos
fn len(&self) -> usize
fn has(&self, outpoint: Outpoint) -> bool
fn get(&self, outpoint: Outpoint) -> Option<(Sats, Terminal)>
Source§fn insert(&mut self, outpoint: Outpoint, value: Sats, terminal: Terminal)
fn insert(&mut self, outpoint: Outpoint, value: Sats, terminal: Terminal)
Available on non-crate feature
async only.Source§fn insert_all(&mut self, utxos: impl IntoIterator<Item = Utxo>)
fn insert_all(&mut self, utxos: impl IntoIterator<Item = Utxo>)
Available on non-crate feature
async only.Source§fn remove(&mut self, outpoint: Outpoint) -> Option<(Sats, Terminal)>
fn remove(&mut self, outpoint: Outpoint) -> Option<(Sats, Terminal)>
Available on non-crate feature
async only.Source§fn remove_all(&mut self, outpoints: impl IntoIterator<Item = Outpoint>)
fn remove_all(&mut self, outpoints: impl IntoIterator<Item = Outpoint>)
Available on non-crate feature
async only.fn outpoints(&self) -> impl Iterator<Item = Outpoint>
fn next_index_noshift(&self, keychain: impl Into<Keychain>) -> NormalIndex
Source§fn next_index(
&mut self,
keychain: impl Into<Keychain>,
shift: bool,
) -> NormalIndex
fn next_index( &mut self, keychain: impl Into<Keychain>, shift: bool, ) -> NormalIndex
Available on non-crate feature
async only.impl Eq for MemUtxos
impl StructuralPartialEq for MemUtxos
Auto Trait Implementations§
impl Freeze for MemUtxos
impl RefUnwindSafe for MemUtxos
impl Send for MemUtxos
impl Sync for MemUtxos
impl Unpin for MemUtxos
impl UnwindSafe for MemUtxos
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.