[][src]Struct slide::Opts

pub struct Opts {
    pub program: String,
    pub emit_format: String,
    pub emit_config: Vec<String>,
    pub lint: bool,
    pub parse_only: bool,
    pub expr_pat: bool,
    pub explain_diagnostic: Option<String>,
    pub color: bool,
}

Options to run slide with.

Fields

program: String

Slide program.

emit_format: String

How the result of slide's execution should be emitted.

emit_config: Vec<String>

Configuration options for slide emit.

lint: bool

When true, lint warnings for the program will be emitted, if any.

parse_only: bool

When true, slide will stop after parsing a program.

expr_pat: bool

When true, slide will expect the program to be an expression pattern.

explain_diagnostic: Option<String>

When is Some diagnostic code, will explain that code.

color: bool

When true, slide emit will be colored.

Auto Trait Implementations

impl RefUnwindSafe for Opts

impl Send for Opts

impl Sync for Opts

impl Unpin for Opts

impl UnwindSafe for Opts

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.