pub struct SVMInstruction<'a> {
pub program_id_index: u8,
pub accounts: &'a [u8],
pub data: &'a [u8],
}
Expand description
A non-owning version of CompiledInstruction
that references
slices of account indexes and data.
Fields§
§program_id_index: u8
Index into the transaction keys array indicating the program account that executes this instruction.
accounts: &'a [u8]
Ordered indices into the transaction keys array indicating which accounts to pass to the program.
data: &'a [u8]
The program input data.
Trait Implementations§
Source§impl<'a> Clone for SVMInstruction<'a>
impl<'a> Clone for SVMInstruction<'a>
Source§fn clone(&self) -> SVMInstruction<'a>
fn clone(&self) -> SVMInstruction<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for SVMInstruction<'a>
impl<'a> Debug for SVMInstruction<'a>
Source§impl<'a> From<&'a CompiledInstruction> for SVMInstruction<'a>
impl<'a> From<&'a CompiledInstruction> for SVMInstruction<'a>
Source§fn from(ix: &'a CompiledInstruction) -> Self
fn from(ix: &'a CompiledInstruction) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for SVMInstruction<'a>
impl<'a> PartialEq for SVMInstruction<'a>
impl<'a> Eq for SVMInstruction<'a>
impl<'a> StructuralPartialEq for SVMInstruction<'a>
Auto Trait Implementations§
impl<'a> Freeze for SVMInstruction<'a>
impl<'a> RefUnwindSafe for SVMInstruction<'a>
impl<'a> Send for SVMInstruction<'a>
impl<'a> Sync for SVMInstruction<'a>
impl<'a> Unpin for SVMInstruction<'a>
impl<'a> UnwindSafe for SVMInstruction<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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