pub struct ParserOptions {
pub process_escape_codes: bool,
}Expand description
Options that are passed into Parser::parse
Fields§
§process_escape_codes: boolWhether or not string escape codes should be processed. (default: true)
When true, escape codes will be processed, with the processed string stored in the constant pool. When false, the string contents will be stored in the constant pool exactly as defined in the source file.
The runtime expects this to be true, while some development tools like koto_format will
set this to false.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParserOptions
impl RefUnwindSafe for ParserOptions
impl Send for ParserOptions
impl Sync for ParserOptions
impl Unpin for ParserOptions
impl UnwindSafe for ParserOptions
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