pub struct Project {
pub conf: Arc<Configuration>,
pub metadata: Metadata,
}
Fields§
§conf: Arc<Configuration>
§metadata: Metadata
Implementations§
Source§impl Project
impl Project
pub fn new(conf: &Arc<Configuration>, metadata: Metadata) -> Project
pub fn project_dir(&self) -> Result<PathBuf>
pub fn overlay_work_dir(&self, platform: &dyn Platform) -> Result<PathBuf>
pub fn target_dir(&self, triple: &str) -> Result<PathBuf>
pub fn link_test_data(&self, runnable: &Runnable) -> Result<PathBuf>
pub fn copy_test_data<T: AsRef<Path>>(&self, app_path: T) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more