pub struct ProjectRoot {
pub root_path: PathBuf,
pub config: ShapeProject,
}Expand description
A discovered project root with its parsed configuration
Fields§
§root_path: PathBufThe directory containing shape.toml
config: ShapeProjectParsed configuration
Implementations§
Source§impl ProjectRoot
impl ProjectRoot
Sourcepub fn resolved_module_paths(&self) -> Vec<PathBuf>
pub fn resolved_module_paths(&self) -> Vec<PathBuf>
Resolve module paths relative to the project root
Trait Implementations§
Source§impl Clone for ProjectRoot
impl Clone for ProjectRoot
Auto Trait Implementations§
impl Freeze for ProjectRoot
impl RefUnwindSafe for ProjectRoot
impl Send for ProjectRoot
impl Sync for ProjectRoot
impl Unpin for ProjectRoot
impl UnsafeUnpin for ProjectRoot
impl UnwindSafe for ProjectRoot
Blanket Implementations§
impl<T> Allocation for T
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