pub struct MaybeMint<'a, A>(/* private fields */);Expand description
A settle instruction’s mint slot: a value whose address is either a real
mint, naming a TransferChecked, or the MINT_PLACEHOLDER sentinel,
naming a plain Transfer. The two are indistinguishable as raw addresses,
so this wrapper forces callers through MaybeMint::get to resolve which,
rather than handling a bare slot that is secretly one or the other.
Implementations§
Trait Implementations§
impl<'a, A: Copy> Copy for MaybeMint<'a, A>
impl<'a, A: Eq> Eq for MaybeMint<'a, A>
impl<'a, A: PartialEq> StructuralPartialEq for MaybeMint<'a, A>
Auto Trait Implementations§
impl<'a, A> Freeze for MaybeMint<'a, A>
impl<'a, A> RefUnwindSafe for MaybeMint<'a, A>where
&'a A: RefUnwindSafe,
impl<'a, A> Send for MaybeMint<'a, A>
impl<'a, A> Sync for MaybeMint<'a, A>
impl<'a, A> Unpin for MaybeMint<'a, A>
impl<'a, A> UnsafeUnpin for MaybeMint<'a, A>where
&'a A: UnsafeUnpin,
impl<'a, A> UnwindSafe for MaybeMint<'a, A>where
&'a A: UnwindSafe,
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