[−][src]Struct cpclib_asm::preamble::SymbolsTableCaseDependent
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]
table: SymbolsTable,
case_sensitive: bool
) -> SymbolsTableCaseDependent
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]
&mut self,
symbol: S
) -> Result<(), SymbolError> where
S: AsRef<str>,
pub fn set_symbol_to_value<S>(&mut self, symbol: S, value: i32) where
S: AsRef<str>,
[src]
S: AsRef<str>,
pub fn update_symbol_to_value<S>(&mut self, symbol: S, value: i32) where
S: AsRef<str>,
[src]
S: AsRef<str>,
pub fn value<S>(&self, symbol: S) -> Option<i32> where
S: AsRef<str>,
[src]
S: AsRef<str>,
pub fn remove_symbol<S>(&mut self, symbol: S) -> Option<Symbol> where
S: AsRef<str>,
[src]
S: AsRef<str>,
pub fn contains_symbol<S>(&self, symbol: S) -> bool where
S: AsRef<str>,
[src]
S: AsRef<str>,
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]
S: AsRef<str>,
Trait Implementations
impl AsRef<SymbolsTable> for SymbolsTableCaseDependent
[src]
fn as_ref(&self) -> &SymbolsTable
[src]
impl Clone for SymbolsTableCaseDependent
[src]
fn clone(&self) -> SymbolsTableCaseDependent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SymbolsTableCaseDependent
[src]
impl Default for SymbolsTableCaseDependent
[src]
By default, the assembler is case sensitive
Auto Trait Implementations
impl RefUnwindSafe for SymbolsTableCaseDependent
impl Send for SymbolsTableCaseDependent
impl Sync for SymbolsTableCaseDependent
impl Unpin for SymbolsTableCaseDependent
impl UnwindSafe for SymbolsTableCaseDependent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,