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>, 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§

Source

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

Source

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

Source

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".

Implementors§

Source§

impl<I, C, V, Ty, Info> GetProgramInfo for ProgramImage<I, C, V, Ty, Info>
where Ty: Clone,

Source§

type Type = Ty

Source§

type Value = V