Trait spirv_tools::assembler::Assembler

source ·
pub trait Assembler: Default {
    // Required methods
    fn with_env(target_env: TargetEnv) -> Self;
    fn assemble(
        &self,
        text: &str,
        options: AssemblerOptions
    ) -> Result<Binary, Error>;
    fn disassemble(
        &self,
        binary: impl AsRef<[u32]>,
        options: DisassembleOptions
    ) -> Result<Option<String>, Error>;
}

Required Methods§

source

fn with_env(target_env: TargetEnv) -> Self

source

fn assemble( &self, text: &str, options: AssemblerOptions ) -> Result<Binary, Error>

source

fn disassemble( &self, binary: impl AsRef<[u32]>, options: DisassembleOptions ) -> Result<Option<String>, Error>

Object Safety§

This trait is not object safe.

Implementors§