pub struct ParserOptions {
pub enable_extended_globbing: bool,
pub posix_mode: bool,
pub sh_mode: bool,
pub tilde_expansion: bool,
}
Expand description
Options used to control the behavior of the parser.
Fields§
§enable_extended_globbing: bool
Whether or not to enable extended globbing (a.k.a. extglob
).
posix_mode: bool
Whether or not to enable POSIX compliance mode.
sh_mode: bool
Whether or not to enable maximal compatibility with the sh
shell.
tilde_expansion: bool
Whether or not to perform tilde expansion.
Implementations§
Source§impl ParserOptions
impl ParserOptions
Sourcepub const fn tokenizer_options(&self) -> TokenizerOptions
pub const fn tokenizer_options(&self) -> TokenizerOptions
Returns the tokenizer options implied by these parser options.
Trait Implementations§
Source§impl Clone for ParserOptions
impl Clone for ParserOptions
Source§fn clone(&self) -> ParserOptions
fn clone(&self) -> ParserOptions
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 Default for ParserOptions
impl Default for ParserOptions
Source§impl Hash for ParserOptions
impl Hash for ParserOptions
Source§impl PartialEq for ParserOptions
impl PartialEq for ParserOptions
impl Eq for ParserOptions
impl StructuralPartialEq for ParserOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.