[][src]Struct pir_8_emu::options::DisassemblerOptions

pub struct DisassemblerOptions {
    pub input: Option<(String, PathBuf)>,
    pub skip: usize,
    pub keep: Vec<(usize, usize)>,
    pub register_lettters: Option<String>,
}

Representation of the assembler's all configurable values.

Interface based on ndisasm.

Fields

input: Option<(String, PathBuf)>

The input assembly files, with None being stdin

Required

skip: usize

How many bytes of header to skip

Default: 0

keep: Vec<(usize, usize)>

Set of (bytes, start) pairs describing how many bytes not to disassemble from position start

Default: empty

register_lettters: Option<String>

Custom GP register letters, if specified

Default: None

Methods

impl DisassemblerOptions[src]

pub fn parse() -> DisassemblerOptions[src]

Parse env-wide command-line arguments into an DisassemblerOptions instance

Trait Implementations

impl Clone for DisassemblerOptions[src]

impl Debug for DisassemblerOptions[src]

impl Eq for DisassemblerOptions[src]

impl Hash for DisassemblerOptions[src]

impl PartialEq<DisassemblerOptions> for DisassemblerOptions[src]

impl StructuralEq for DisassemblerOptions[src]

impl StructuralPartialEq for DisassemblerOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for DisassemblerOptions

impl Send for DisassemblerOptions

impl Sync for DisassemblerOptions

impl Unpin for DisassemblerOptions

impl UnwindSafe for DisassemblerOptions

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.