[][src]Struct sourcegen_cli::SourcegenParameters

pub struct SourcegenParameters<'a> {
    pub manifest: Option<&'a Path>,
    pub generators: &'a [(&'a str, &'a dyn SourceGenerator)],
    pub packages: BTreeSet<String>,
    // some fields omitted
}

Parameters for the source generation tool

Fields

manifest: Option<&'a Path>

Root cargo manifest file to start from. If not given, the default is to use Cargo.toml in the current directory.

generators: &'a [(&'a str, &'a dyn SourceGenerator)]

List of generators to run. Each entry is a pair of generator name and trait object implementing the generator.

packages: BTreeSet<String>

List of packages to generate code for. If not given, the default is to generate code for all of the packages.

Trait Implementations

impl<'a> Clone for SourcegenParameters<'a>[src]

impl<'a> Default for SourcegenParameters<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for SourcegenParameters<'a>

impl<'a> !Send for SourcegenParameters<'a>

impl<'a> !Sync for SourcegenParameters<'a>

impl<'a> Unpin for SourcegenParameters<'a>

impl<'a> !UnwindSafe for SourcegenParameters<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,