[][src]Struct inc::x86::ASM

pub struct ASM(pub Vec<Ins>);

ASM is a list of instructions.

Display trait converts this type to valid code that can be compiled and executed. For now this is pretty dumb, but over time this could be made into something a lot smarter and safe rather than concatenating so many tiny strings together.

Trait Implementations

impl Clone for ASM[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<Ins> for ASM[src]

Convert a single operation to ASM

impl From<String> for ASM[src]

Convert a String to ASM

impl<'_> From<&'_ str> for ASM[src]

Convert a string literal to ASM

impl Display for ASM[src]

Collect all the bits and pieces together into valid assembly

impl Add<Ins> for ASM[src]

Add operations to ASM with overloaded asm' = asm + op.

NOTE: This is pretty inefficient due to copying of self.

type Output = Self

The resulting type after applying the + operator.

impl Add<ASM> for ASM[src]

Concat ASM; asm + asm

NOTE: This is pretty inefficient due to copying both arguments.

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<Ins> for ASM[src]

Add operations with a easy to read asm += op short hand.

This is pretty efficient at the cost of owning the value.

Auto Trait Implementations

impl Send for ASM

impl Sync for ASM

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]