Function solana_sdk::process_instruction::get_sysvar [−][src]
pub fn get_sysvar<T: Sysvar>(
invoke_context: &dyn InvokeContext,
id: &Pubkey
) -> Result<T, InstructionError>
pub fn get_sysvar<T: Sysvar>(
invoke_context: &dyn InvokeContext,
id: &Pubkey
) -> Result<T, InstructionError>