pub struct CompileConfig {
pub char_width: CharWidthMode,
}
Expand description
Stores settings used during code compilation.
This struct is used to configure how character widths are interpreted during the compilation process for now.
§Example
use trees_lang::compile::{CompileConfig, CharWidthMode};
let config = CompileConfig {
char_width: CharWidthMode::Full,
};
This configuration can then be passed to compilation functions such as split_code
or find_blocks
to control how character positions and widths are calculated.
Fields§
§char_width: CharWidthMode
Character width mode used during compilation.
Implementations§
Source§impl CompileConfig
impl CompileConfig
Sourcepub const DEFAULT: CompileConfig
pub const DEFAULT: CompileConfig
Default setup for compile
Trait Implementations§
Source§impl Clone for CompileConfig
impl Clone for CompileConfig
Source§fn clone(&self) -> CompileConfig
fn clone(&self) -> CompileConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CompileConfig
impl RefUnwindSafe for CompileConfig
impl Send for CompileConfig
impl Sync for CompileConfig
impl Unpin for CompileConfig
impl UnwindSafe for CompileConfig
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