Struct dinghy_lib::project::Project
source · pub struct Project {
pub conf: Arc<Configuration>,
}
Fields
conf: Arc<Configuration>
Implementations
sourceimpl Project
impl Project
pub fn new(conf: &Arc<Configuration>) -> Project
pub fn project_dir(&self) -> Result<PathBuf>
pub fn overlay_work_dir(&self, platform: &dyn Platform) -> Result<PathBuf>
pub fn target_dir(&self, rustc_triple: Option<&str>) -> Result<PathBuf>
pub fn for_runnable(&self, runnable: &Runnable) -> Result<Self>
pub fn link_test_data<T: AsRef<Path>>(
&self,
runnable: &Runnable,
app_path: T
) -> Result<()>
pub fn copy_test_data<T: AsRef<Path>>(&self, app_path: T) -> Result<()>
pub fn rec_copy<P1: AsRef<Path>, P2: AsRef<Path>>(
&self,
src: P1,
dst: P2,
copy_ignored_test_data: bool
) -> Result<()>
pub fn rec_copy_excl<P1: AsRef<Path>, P2: AsRef<Path>, P3: AsRef<Path> + Debug>(
&self,
src: P1,
dst: P2,
copy_ignored_test_data: bool,
more_exclude: &[P3]
) -> Result<()>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more