Struct chain_impl_mockchain::testing::ledger::UtxoDb
source · pub struct UtxoDb {
db: HashMap<(FragmentId, u8), UtxoDeclaration>,
}
Fields§
§db: HashMap<(FragmentId, u8), UtxoDeclaration>
Implementations§
source§impl UtxoDb
impl UtxoDb
pub fn find_fragments(&self, decl: &UtxoDeclaration) -> Vec<(FragmentId, u8)>
pub fn get(&self, key: &(FragmentId, u8)) -> Option<&UtxoDeclaration>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for UtxoDb
impl Send for UtxoDb
impl Sync for UtxoDb
impl Unpin for UtxoDb
impl UnwindSafe for UtxoDb
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