Skip to main content

GetProgramInfo

Trait GetProgramInfo 

Source
pub trait GetProgramInfo {
    type Type;
    type Value;

    // Required methods
    fn get_function(&self, index: usize) -> Result<FunctionInfo<Self::Type>>;
    fn get_string(&self, index: usize) -> Result<&String>;
    fn get_constant(&self, id: ConstantId) -> Result<&Self::Value>;
}

Required Associated Types§

Required Methods§

Source

fn get_function(&self, index: usize) -> Result<FunctionInfo<Self::Type>>

Source

fn get_string(&self, index: usize) -> Result<&String>

Source

fn get_constant(&self, id: ConstantId) -> Result<&Self::Value>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§