Skip to main content

ShellDialect

Trait ShellDialect 

Source
pub trait ShellDialect:
    Default
    + Send
    + Sync
    + 'static {
    const NAME: &'static str;
}
Expand description

Which shell a ShellMetaLanguage speaks.

The two dialects reconstruct fragments identically — zsh’s grammar is a fork of bash’s and their double-quoting rules are the same — so the dialect is carried only so that a refusal names the host the user actually wrote, the way crate::langs::lean::meta has to accept both lean and lean4.

Required Associated Constants§

Source

const NAME: &'static str

The canonical registry name, as it appears in an error message.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ShellDialect for BashDialect

Source§

const NAME: &'static str = "bash"

Source§

impl ShellDialect for ZshDialect

Source§

const NAME: &'static str = "zsh"