Struct amfnengine::core::elem_symbol::ElemSymbol[]

pub struct ElemSymbol { /* fields omitted */ }

Implementations

impl ElemSymbol

The symbol element implementation.

pub fn new() -> ElemSymbol

Create a new symbol element.

Return

  • See description.

pub fn new_with_token_type(type_param: TokenType) -> ElemSymbol

Create a new object with a specific type.

Arguments

  • type_param - Type of symbol.

Return

  • See description.

pub fn copy(&self) -> ElemSymbol

Copy this symbol and return a new symbol.

Return

  • See description.

pub fn sym_type(&self) -> TokenType

Get the type of symbol.

Return

  • See description.

pub fn sym_integeri(&self) -> i32

Get the integer value.

Return

  • See description.

pub fn sym_integer(&self) -> usize

Get the integer value.

Return

  • See description.

pub fn sym_decimal(&self) -> Decimal

Get the decimal value.

Return

  • See description.

pub fn sym_string(&self) -> &str

Get the string value.

Return

  • See description.

pub fn set_type(&mut self, sym_type_param: TokenType)

Set the type of symbol.

Arguments

  • sym_type_param - See description.

pub fn set_operator(&mut self, op_value_param: usize)

Set the operator value.

Arguments

  • op_value_param - See description.

pub fn set_integeri(&mut self, int_value_param: i32)

Set the integer value.

Arguments

  • int_value_param - See description.

pub fn set_integer(&mut self, int_value_param: usize)

Set the integer value.

Arguments

  • int_value_param - See description.

pub fn set_decimal(&mut self, dec_value_param: Decimal)

Set the decimal value.

Arguments

  • flt_value_param - See description.

pub fn set_string(&mut self, str_value_param: &str)

Set the string value.

Arguments

  • str_value_param - See description.

Trait Implementations

impl Clone for ElemSymbol

impl Default for ElemSymbol

The symbol element default implementation.

fn default() -> Self

Create a new symbol element.

Return

  • See description.

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.