pub struct SplMint;Expand description
Known external SPL Mint adapter.
Trait Implementations§
Source§impl ExplainExternal for SplMint
impl ExplainExternal for SplMint
Source§fn explain<S: ExternalExplainSink>(
account: &AccountView<'_>,
sink: &mut S,
) -> ProgramResult
fn explain<S: ExternalExplainSink>( account: &AccountView<'_>, sink: &mut S, ) -> ProgramResult
Emit adapter-specific explain fields.
Source§impl ExternalZeroCopy for SplMint
impl ExternalZeroCopy for SplMint
Source§type View<'a> = SplMintView<'a>
type View<'a> = SplMintView<'a>
Guard-owned zero-copy view returned by this external adapter. Read more
Source§fn view<'a>(data: Ref<'a, [u8]>) -> Result<Self::View<'a>, ProgramError>
fn view<'a>(data: Ref<'a, [u8]>) -> Result<Self::View<'a>, ProgramError>
Build the adapter’s typed zero-copy view from an active account-data
borrow. The borrow guard is consumed so the returned view can carry it.
Source§const DISCRIMINATOR: Option<&'static [u8]> = None
const DISCRIMINATOR: Option<&'static [u8]> = None
Optional byte prefix/discriminator at offset 0.
Source§fn validate(view: &AccountView<'_>) -> ProgramResult
fn validate(view: &AccountView<'_>) -> ProgramResult
Validate this external account. Override for multi-owner layouts,
versioned dispatch, or custom invariants.
Auto Trait Implementations§
impl Freeze for SplMint
impl RefUnwindSafe for SplMint
impl Send for SplMint
impl Sync for SplMint
impl Unpin for SplMint
impl UnsafeUnpin for SplMint
impl UnwindSafe for SplMint
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