pub struct Mint(/* private fields */);
Implementations§
Source§impl Mint
impl Mint
pub fn new() -> Self
pub fn add(&mut self, key: ScriptHash, content: MintAssets)
pub fn iter(&self) -> impl Iterator<Item = &(ScriptHash, MintAssets)>
Trait Implementations§
Source§impl From<BTreeMap<ScriptHash, MintAssets>> for Mint
impl From<BTreeMap<ScriptHash, MintAssets>> for Mint
Source§fn from(v: BTreeMap<ScriptHash, MintAssets>) -> Self
fn from(v: BTreeMap<ScriptHash, MintAssets>) -> Self
Converts to this type from the input type.
Source§impl From<Vec<(ScriptHash, MintAssets)>> for Mint
impl From<Vec<(ScriptHash, MintAssets)>> for Mint
Source§fn from(v: Vec<(ScriptHash, MintAssets)>) -> Self
fn from(v: Vec<(ScriptHash, MintAssets)>) -> Self
Converts to this type from the input type.
impl Eq for Mint
impl StructuralPartialEq for Mint
Auto Trait Implementations§
impl Freeze for Mint
impl RefUnwindSafe for Mint
impl Send for Mint
impl Sync for Mint
impl Unpin for Mint
impl UnwindSafe for Mint
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