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