[][src]Struct cargo_inspect::config::Config

pub struct Config {
    pub input: Option<PathBuf>,
    pub files: Option<(String, String)>,
    pub unpretty: String,
    pub verbose: bool,
    pub plain: bool,
    pub theme: Option<String>,
    pub list_themes: bool,
}

Holds all configuration options when using cargo-inspect as a library.

Fields

input: Option<PathBuf>

Input file

files: Option<(String, String)>

Diff input files

unpretty: String

rustc "unpretty" parameters

verbose: bool

Print the original code as a comment above the desugared code

plain: bool

Don't highlight output

theme: Option<String>

Specify a theme override for the pretty printer

list_themes: bool

Should we list all pretty printer themes?

Trait Implementations

impl Debug for Config[src]

impl StructOpt for Config[src]

fn from_args() -> Self[src]

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

fn from_iter<I>(iter: I) -> Self where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
    I: IntoIterator,
    <I as IntoIterator>::Item: Into<OsString>,
    <I as IntoIterator>::Item: Clone
[src]

Gets the struct from any iterator such as a Vec of your making. Read more

Auto Trait Implementations

impl Send for Config

impl Sync for Config

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T