pub struct SourcegenParameters<'a> {
pub manifest: Option<&'a Path>,
pub generators: &'a [(&'a str, &'a dyn SourceGenerator)],
pub packages: BTreeSet<String>,
/* private fields */
}
Expand description
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§
Source§impl<'a> Clone for SourcegenParameters<'a>
impl<'a> Clone for SourcegenParameters<'a>
Source§fn clone(&self) -> SourcegenParameters<'a>
fn clone(&self) -> SourcegenParameters<'a>
Returns a copy 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<'a> Default for SourcegenParameters<'a>
impl<'a> Default for SourcegenParameters<'a>
Source§fn default() -> SourcegenParameters<'a>
fn default() -> SourcegenParameters<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for SourcegenParameters<'a>
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§
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