pub struct ReplParserConfig {
pub allow_multiline: bool,
pub normalize_whitespace: bool,
pub strip_comments: bool,
}Expand description
Configuration for ReplParser.
Fields§
§allow_multiline: boolWhether to allow multi-line input.
normalize_whitespace: boolWhether to normalize whitespace before parsing.
strip_comments: boolWhether to strip comments before parsing.
Implementations§
Source§impl ReplParserConfig
impl ReplParserConfig
Sourcepub fn with_multiline(self) -> Self
pub fn with_multiline(self) -> Self
Enable multi-line input.
Trait Implementations§
Source§impl Clone for ReplParserConfig
impl Clone for ReplParserConfig
Source§fn clone(&self) -> ReplParserConfig
fn clone(&self) -> ReplParserConfig
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 moreSource§impl Debug for ReplParserConfig
impl Debug for ReplParserConfig
Source§impl Default for ReplParserConfig
impl Default for ReplParserConfig
Source§fn default() -> ReplParserConfig
fn default() -> ReplParserConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReplParserConfig
impl RefUnwindSafe for ReplParserConfig
impl Send for ReplParserConfig
impl Sync for ReplParserConfig
impl Unpin for ReplParserConfig
impl UnsafeUnpin for ReplParserConfig
impl UnwindSafe for ReplParserConfig
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