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§
Source§impl Clone for DenseLuaGenerator
impl Clone for DenseLuaGenerator
Source§fn clone(&self) -> DenseLuaGenerator
fn clone(&self) -> DenseLuaGenerator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DenseLuaGenerator
impl Debug for DenseLuaGenerator
Source§impl Default for DenseLuaGenerator
impl Default for DenseLuaGenerator
Source§impl LuaGenerator for DenseLuaGenerator
impl LuaGenerator for DenseLuaGenerator
Source§fn 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_type_declaration_statement( &mut self, statement: &TypeDeclarationStatement, )
fn write_false_expression(&mut self, _token: &Option<Token>)
fn write_true_expression(&mut self, _token: &Option<Token>)
fn write_nil_expression(&mut self, _token: &Option<Token>)
fn write_variable_arguments_expression(&mut self, _token: &Option<Token>)
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_interpolated_string( &mut self, interpolated_string: &InterpolatedStringExpression, )
fn write_identifier(&mut self, identifier: &Identifier)
fn write_parenthese(&mut self, parenthese: &ParentheseExpression)
fn write_type_cast(&mut self, type_cast: &TypeCastExpression)
fn write_type_name(&mut self, type_name: &TypeName)
fn write_type_field(&mut self, type_field: &TypeField)
fn write_true_type(&mut self, _: &Option<Token>)
fn write_false_type(&mut self, _: &Option<Token>)
fn write_nil_type(&mut self, _: &Option<Token>)
fn write_string_type(&mut self, string_type: &StringType)
fn write_array_type(&mut self, array: &ArrayType)
fn write_table_type(&mut self, table_type: &TableType)
fn write_expression_type(&mut self, expression_type: &ExpressionType)
fn write_parenthese_type(&mut self, parenthese_type: &ParentheseType)
fn write_function_type(&mut self, function_type: &FunctionType)
fn write_optional_type(&mut self, optional: &OptionalType)
fn write_intersection_type(&mut self, intersection: &IntersectionType)
fn write_union_type(&mut self, union: &UnionType)
fn write_type_pack(&mut self, type_pack: &TypePack)
fn write_variadic_type_pack(&mut self, variadic_type_pack: &VariadicTypePack)
fn write_generic_type_pack(&mut self, generic_type_pack: &GenericTypePack)
fn write_statement(&mut self, statement: &Statement)
fn write_variable(&mut self, variable: &Variable)
fn write_expression(&mut self, expression: &Expression)
fn write_prefix(&mut self, prefix: &Prefix)
fn write_arguments(&mut self, arguments: &Arguments)
fn write_type(&mut self, type: &Type)
fn write_function_return_type(&mut self, return_type: &FunctionReturnType)
fn write_variadic_argument_type( &mut self, variadic_argument_type: &VariadicArgumentType, )
fn write_function_variadic_type(&mut self, variadic_type: &FunctionVariadicType)
fn write_type_parameter(&mut self, type_parameter: &TypeParameter)
fn write_generic_type_pack_default( &mut self, generic_type_pack_default: &GenericTypePackDefault, )
Auto Trait Implementations§
impl Freeze for DenseLuaGenerator
impl RefUnwindSafe for DenseLuaGenerator
impl Send for DenseLuaGenerator
impl Sync for DenseLuaGenerator
impl Unpin for DenseLuaGenerator
impl UnwindSafe for DenseLuaGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more