[−][src]Struct darklua_core::generator::DenseLuaGenerator
This implementation of LuaGenerator attempts to produce Lua code as small as possible. It is not meant to be read by humans.
Implementations
impl DenseLuaGenerator
[src]
pub fn new(column_span: usize) -> Self
[src]
Creates a generator that will wrap the code on a new line after the amount of
characters given by the column_span
argument.
pub fn into_string(self) -> String
[src]
Consumes the LuaGenerator and produce a String object.
Trait Implementations
impl Clone for DenseLuaGenerator
[src]
fn clone(&self) -> DenseLuaGenerator
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DenseLuaGenerator
[src]
impl Default for DenseLuaGenerator
[src]
impl LuaGenerator for DenseLuaGenerator
[src]
fn into_string(self) -> String
[src]
Consumes the LuaGenerator and produce a String object.
fn write_block(&mut self, block: &Block)
[src]
fn write_assign_statement(&mut self, assign: &AssignStatement)
[src]
fn write_do_statement(&mut self, do_statement: &DoStatement)
[src]
fn write_generic_for(&mut self, generic_for: &GenericForStatement)
[src]
fn write_if_statement(&mut self, if_statement: &IfStatement)
[src]
fn write_function_statement(&mut self, function: &FunctionStatement)
[src]
fn write_last_statement(&mut self, statement: &LastStatement)
[src]
fn write_local_assign(&mut self, assign: &LocalAssignStatement)
[src]
fn write_local_function(&mut self, function: &LocalFunctionStatement)
[src]
fn write_numeric_for(&mut self, numeric_for: &NumericForStatement)
[src]
fn write_repeat_statement(&mut self, repeat: &RepeatStatement)
[src]
fn write_while_statement(&mut self, while_statement: &WhileStatement)
[src]
fn write_expression(&mut self, expression: &Expression)
[src]
fn write_binary_expression(&mut self, binary: &BinaryExpression)
[src]
fn write_unary_expression(&mut self, unary: &UnaryExpression)
[src]
fn write_function(&mut self, function: &FunctionExpression)
[src]
fn write_function_call(&mut self, call: &FunctionCall)
[src]
fn write_field(&mut self, field: &FieldExpression)
[src]
fn write_index(&mut self, index: &IndexExpression)
[src]
fn write_prefix(&mut self, prefix: &Prefix)
[src]
fn write_table(&mut self, table: &TableExpression)
[src]
fn write_table_entry(&mut self, entry: &TableEntry)
[src]
fn write_number(&mut self, number: &NumberExpression)
[src]
fn write_arguments(&mut self, arguments: &Arguments)
[src]
fn write_string(&mut self, string: &StringExpression)
[src]
fn write_statement(&mut self, statement: &Statement)
[src]
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
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>,