pub struct Program<'info, P: ProgramId> {
pub info: &'info AccountInfo<'info>,
/* private fields */
}Expand description
Program<'info, P> — auto-implies executable == true AND info.key == P::ID.
Fields§
§info: &'info AccountInfo<'info>Implementations§
Auto Trait Implementations§
impl<'info, P> Freeze for Program<'info, P>
impl<'info, P> !RefUnwindSafe for Program<'info, P>
impl<'info, P> !Send for Program<'info, P>
impl<'info, P> !Sync for Program<'info, P>
impl<'info, P> Unpin for Program<'info, P>where
P: Unpin,
impl<'info, P> UnsafeUnpin for Program<'info, P>
impl<'info, P> !UnwindSafe for Program<'info, P>
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