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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".