Struct rstest_test::prj::Project
source · [−]pub struct Project {
pub name: OsString,
/* private fields */
}
Fields
name: OsString
Implementations
sourceimpl Project
impl Project
pub fn new<P: AsRef<Path>>(root: P) -> Self
pub fn get_name(&self) -> Cow<'_, str>
pub fn with_nocapture(self) -> Self
pub fn subproject<O: AsRef<OsStr>>(&self, name: O) -> Self
pub fn name<O: AsRef<OsStr>>(self, name: O) -> Self
pub fn path(&self) -> PathBuf
pub fn run_tests(&self) -> Result<Output, Error>
pub fn compile(&self) -> Result<Output, Error>
pub fn set_code_file<P: AsRef<Path>>(self, src: P) -> Self
pub fn append_code<S: AsRef<str>>(&self, code: S)
pub fn add_dependency(&self, crate_name: &str, attrs: &str)
pub fn add_local_dependency(&self, name: &str)
pub fn exec_dir_str(&self) -> String
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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