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
Auto 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