pub struct ShellProfile {
pub dialect: ShellDialect,
pub options: Option<ZshOptionState>,
}Expand description
Dialect plus optional zsh option state used to configure the lexer and parser.
Fields§
§dialect: ShellDialectShell dialect to parse.
options: Option<ZshOptionState>Optional zsh option state, used only for zsh parsing.
Implementations§
Source§impl ShellProfile
impl ShellProfile
Sourcepub fn native(dialect: ShellDialect) -> Self
pub fn native(dialect: ShellDialect) -> Self
Build a native profile for dialect.
Sourcepub fn with_zsh_options(dialect: ShellDialect, options: ZshOptionState) -> Self
pub fn with_zsh_options(dialect: ShellDialect, options: ZshOptionState) -> Self
Build a profile with explicit zsh option state.
Sourcepub fn zsh_options(&self) -> Option<&ZshOptionState>
pub fn zsh_options(&self) -> Option<&ZshOptionState>
Borrow the zsh option state, if this profile carries one.
Trait Implementations§
Source§impl Clone for ShellProfile
impl Clone for ShellProfile
Source§fn clone(&self) -> ShellProfile
fn clone(&self) -> ShellProfile
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 ShellProfile
impl Debug for ShellProfile
Source§impl Hash for ShellProfile
impl Hash for ShellProfile
Source§impl PartialEq for ShellProfile
impl PartialEq for ShellProfile
impl Eq for ShellProfile
impl StructuralPartialEq for ShellProfile
Auto Trait Implementations§
impl Freeze for ShellProfile
impl RefUnwindSafe for ShellProfile
impl Send for ShellProfile
impl Sync for ShellProfile
impl Unpin for ShellProfile
impl UnsafeUnpin for ShellProfile
impl UnwindSafe for ShellProfile
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