pub trait GetProgramInfo {
type Type;
type Value;
// Required methods
fn get_function(
&self,
index: usize,
) -> Result<FunctionInfo<Self::Type>, Report>;
fn get_string(&self, index: usize) -> Result<&String, Report>;
fn get_constant(&self, id: ConstantId) -> Result<&Self::Value, Report>;
}Required Associated Types§
Required Methods§
fn get_function(&self, index: usize) -> Result<FunctionInfo<Self::Type>, Report>
fn get_string(&self, index: usize) -> Result<&String, Report>
fn get_constant(&self, id: ConstantId) -> Result<&Self::Value, Report>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".