Skip to main content

EliteAST

Struct EliteAST 

Source
pub struct EliteAST {
Show 23 fields pub ast_set: String, pub ast_as: String, pub ast_is: String, pub ast_for: String, pub ast_print: String, pub ast_println: String, pub ast_use: String, pub ast_if: String, pub ast_required_version: String, pub ast_suppress: String, pub ast_left_parenthese: String, pub ast_right_parenthese: String, pub ast_square_left_bracket: String, pub ast_square_right_bracket: String, pub ast_for_use: Vec<String>, pub ast_for_functions_arguments: Vec<String>, pub ast_for_use_arguments: Vec<String>, pub syntax_list: HashMap<String, EliteKeywords>, pub ast_for_functions: HashMap<String, EliteKeywords>, pub ast_for_specific_targets: HashMap<String, EliteKeywords>, pub ast_if_functions: HashMap<String, EliteKeywords>, pub ast_use_functions: HashMap<String, EliteKeywords>, pub ast_use_list: HashMap<String, EliteKeywords>,
}

Fields§

§ast_set: String§ast_as: String§ast_is: String§ast_for: String§ast_print: String§ast_println: String§ast_use: String§ast_if: String§ast_required_version: String§ast_suppress: String§ast_left_parenthese: String§ast_right_parenthese: String§ast_square_left_bracket: String§ast_square_right_bracket: String§ast_for_use: Vec<String>§ast_for_functions_arguments: Vec<String>§ast_for_use_arguments: Vec<String>§syntax_list: HashMap<String, EliteKeywords>§ast_for_functions: HashMap<String, EliteKeywords>§ast_for_specific_targets: HashMap<String, EliteKeywords>§ast_if_functions: HashMap<String, EliteKeywords>§ast_use_functions: HashMap<String, EliteKeywords>§ast_use_list: HashMap<String, EliteKeywords>

Implementations§

Source§

impl EliteAST

Source

pub fn init_keywords(&mut self)

Source

pub fn to(&self, data: &str) -> String

Source

pub fn match_for_functions(&mut self, function: &String) -> &EliteKeywords

Source

pub fn match_for_specific_targets(&mut self, target: &String) -> &EliteKeywords

Source

pub fn match_if_functions(&mut self, statement: &String) -> &EliteKeywords

Source

pub fn match_use_functions(&mut self, function: &String) -> &EliteKeywords

Source

pub fn match_use_arguments(&mut self, argument: &String) -> &EliteKeywords

Source

pub fn match_types(&mut self, token: &String) -> &EliteKeywords

Trait Implementations§

Source§

impl Default for EliteAST

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.