[][src]Struct cpclib_asm::preamble::SymbolsTableCaseDependent

pub struct SymbolsTableCaseDependent { /* fields omitted */ }

Wrapper around the symbols table in order to easily manage the fact that the assembler is case dependent or independant

Methods

impl SymbolsTableCaseDependent[src]

pub fn new(
    table: SymbolsTable,
    case_sensitive: bool
) -> SymbolsTableCaseDependent
[src]

pub fn laxist() -> SymbolsTableCaseDependent[src]

Build a laxists vesion of the table : do not care of case and absences of symboles

pub fn set_table(&mut self, table: SymbolsTable)[src]

pub fn set_symbol_to_current_address<S>(
    &mut self,
    symbol: S
) -> Result<(), SymbolError> where
    S: AsRef<str>, 
[src]

pub fn set_symbol_to_value<S>(&mut self, symbol: S, value: i32) where
    S: AsRef<str>, 
[src]

pub fn update_symbol_to_value<S>(&mut self, symbol: S, value: i32) where
    S: AsRef<str>, 
[src]

pub fn value<S>(&self, symbol: S) -> Option<i32> where
    S: AsRef<str>, 
[src]

pub fn remove_symbol<S>(&mut self, symbol: S) -> Option<Symbol> where
    S: AsRef<str>, 
[src]

pub fn contains_symbol<S>(&self, symbol: S) -> bool where
    S: AsRef<str>, 
[src]

pub fn current_address(&self) -> Result<u16, SymbolError>[src]

pub fn set_current_address(&mut self, address: u16)[src]

pub fn closest_symbol<S>(&self, symbol: S) -> Option<String> where
    S: AsRef<str>, 
[src]

Trait Implementations

impl AsRef<SymbolsTable> for SymbolsTableCaseDependent[src]

impl Clone for SymbolsTableCaseDependent[src]

impl Debug for SymbolsTableCaseDependent[src]

impl Default for SymbolsTableCaseDependent[src]

By default, the assembler is case sensitive

Auto Trait Implementations

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