pub struct CTokenInstructionDecoder;Expand description
Generated InstructionDecoder implementation
Trait Implementations§
Source§impl InstructionDecoder for CTokenInstructionDecoder
impl InstructionDecoder for CTokenInstructionDecoder
Source§fn program_id(&self) -> Pubkey
fn program_id(&self) -> Pubkey
Program ID this decoder handles.
Source§fn program_name(&self) -> &'static str
fn program_name(&self) -> &'static str
Human-readable program name (e.g., “Compressed Token Program”).
Source§fn decode(
&self,
data: &[u8],
accounts: &[AccountMeta],
) -> Option<DecodedInstruction>
fn decode( &self, data: &[u8], accounts: &[AccountMeta], ) -> Option<DecodedInstruction>
Decode instruction data into a structured representation.
Returns None if decoding fails or instruction is unknown.
Auto Trait Implementations§
impl Freeze for CTokenInstructionDecoder
impl RefUnwindSafe for CTokenInstructionDecoder
impl Send for CTokenInstructionDecoder
impl Sync for CTokenInstructionDecoder
impl Unpin for CTokenInstructionDecoder
impl UnwindSafe for CTokenInstructionDecoder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more