Struct code_generator::CodeGenerationInfo
source · pub struct CodeGenerationInfo {
pub indent_level: usize,
pub indent_type: IndentationType,
pub indent_amount: usize,
pub indent_style: IndentationStyle,
pub new_line_type: NewLineType,
pub context: GeneratorContext,
pub case_types: CaseTypes,
}Fields§
§indent_level: usize§indent_type: IndentationType§indent_amount: usize§indent_style: IndentationStyle§new_line_type: NewLineType§context: GeneratorContext§case_types: CaseTypesImplementations§
source§impl CodeGenerationInfo
impl CodeGenerationInfo
pub fn new() -> CodeGenerationInfo
pub fn with_ident_style(self, style: IndentationStyle) -> Self
pub fn with_ident_amount(self, amount: usize) -> Self
pub fn with_indent_type(self, indent_type: IndentationType) -> Self
pub fn with_new_line_type(self, new_line_type: NewLineType) -> Self
pub fn with_case_types(self, case_types: CaseTypes) -> Self
pub fn from_style(code_style: CodeStyle) -> CodeGenerationInfo
pub fn indent(&self) -> CodeGenerationInfo
pub fn with_context(&mut self, context: GeneratorContext) -> CodeGenerationInfo
pub fn set_new_line_type(&mut self, new_line_type: NewLineType)
Trait Implementations§
source§impl Clone for CodeGenerationInfo
impl Clone for CodeGenerationInfo
source§fn clone(&self) -> CodeGenerationInfo
fn clone(&self) -> CodeGenerationInfo
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 moreimpl Copy for CodeGenerationInfo
Auto Trait Implementations§
impl Freeze for CodeGenerationInfo
impl RefUnwindSafe for CodeGenerationInfo
impl Send for CodeGenerationInfo
impl Sync for CodeGenerationInfo
impl Unpin for CodeGenerationInfo
impl UnwindSafe for CodeGenerationInfo
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)