Struct darklua_core::generator::DenseLuaGenerator
source · [−]pub struct DenseLuaGenerator { /* private fields */ }Expand description
This implementation of LuaGenerator attempts to produce Lua code as small as possible. It is not meant to be read by humans.
Implementations
Trait Implementations
sourceimpl Clone for DenseLuaGenerator
impl Clone for DenseLuaGenerator
sourcefn clone(&self) -> DenseLuaGenerator
fn clone(&self) -> DenseLuaGenerator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DenseLuaGenerator
impl Debug for DenseLuaGenerator
sourceimpl Default for DenseLuaGenerator
impl Default for DenseLuaGenerator
sourceimpl LuaGenerator for DenseLuaGenerator
impl LuaGenerator for DenseLuaGenerator
sourcefn into_string(self) -> String
fn into_string(self) -> String
Consumes the LuaGenerator and produce a String object.
fn write_block(&mut self, block: &Block)
fn write_assign_statement(&mut self, assign: &AssignStatement)
fn write_do_statement(&mut self, do_statement: &DoStatement)
fn write_generic_for(&mut self, generic_for: &GenericForStatement)
fn write_if_statement(&mut self, if_statement: &IfStatement)
fn write_function_statement(&mut self, function: &FunctionStatement)
fn write_last_statement(&mut self, statement: &LastStatement)
fn write_local_assign(&mut self, assign: &LocalAssignStatement)
fn write_compound_assign(&mut self, assign: &CompoundAssignStatement)
fn write_local_function(&mut self, function: &LocalFunctionStatement)
fn write_numeric_for(&mut self, numeric_for: &NumericForStatement)
fn write_repeat_statement(&mut self, repeat: &RepeatStatement)
fn write_while_statement(&mut self, while_statement: &WhileStatement)
fn write_expression(&mut self, expression: &Expression)
fn write_binary_expression(&mut self, binary: &BinaryExpression)
fn write_unary_expression(&mut self, unary: &UnaryExpression)
fn write_function(&mut self, function: &FunctionExpression)
fn write_function_call(&mut self, call: &FunctionCall)
fn write_field(&mut self, field: &FieldExpression)
fn write_index(&mut self, index: &IndexExpression)
fn write_if_expression(&mut self, if_expression: &IfExpression)
fn write_table(&mut self, table: &TableExpression)
fn write_table_entry(&mut self, entry: &TableEntry)
fn write_number(&mut self, number: &NumberExpression)
fn write_tuple_arguments(&mut self, arguments: &TupleArguments)
fn write_string(&mut self, string: &StringExpression)
fn write_identifier(&mut self, identifier: &Identifier)
fn write_parenthese(&mut self, parenthese: &ParentheseExpression)
fn write_statement(&mut self, statement: &Statement)
fn write_variable(&mut self, variable: &Variable)
fn write_prefix(&mut self, prefix: &Prefix)
fn write_arguments(&mut self, arguments: &Arguments)
Auto Trait Implementations
impl RefUnwindSafe for DenseLuaGenerator
impl Send for DenseLuaGenerator
impl Sync for DenseLuaGenerator
impl Unpin for DenseLuaGenerator
impl UnwindSafe for DenseLuaGenerator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more