pub struct GenContext {
pub manifest: Manifest,
pub root: PathBuf,
}Expand description
What a generator gets to work with: the project manifest and its root directory.
Fields§
§manifest: ManifestThe parsed gize.toml.
root: PathBufThe project root (paths in the returned Plan are relative to it).
Implementations§
Trait Implementations§
Source§impl Clone for GenContext
impl Clone for GenContext
Source§fn clone(&self) -> GenContext
fn clone(&self) -> GenContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GenContext
impl RefUnwindSafe for GenContext
impl Send for GenContext
impl Sync for GenContext
impl Unpin for GenContext
impl UnsafeUnpin for GenContext
impl UnwindSafe for GenContext
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