pub struct TestFormula { /* private fields */ }
Implementations§
Source§impl TestFormula
impl TestFormula
pub fn new(cwd: PathBuf) -> Self
pub fn build(&mut self, binaries: &[(&str, &str)]) -> &mut Self
pub fn env(&mut self, key: impl ToString, val: impl ToString) -> &mut Self
pub fn home( &mut self, user: impl ToString, path: impl AsRef<Path>, envs: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> &mut Self
pub fn envs<K: ToString, V: ToString>( &mut self, envs: impl IntoIterator<Item = (K, V)>, ) -> &mut Self
pub fn file(&mut self, path: impl AsRef<Path>) -> Result<&mut Self, Error>
pub fn read(&mut self, path: &Path, r: impl BufRead) -> Result<&mut Self, Error>
pub fn substitute( &mut self, value: &'static str, other: impl Into<Cow<'static, str>>, ) -> Result<&mut Self, Error>
pub fn run(&mut self) -> Result<bool, Error>
Trait Implementations§
Source§impl Debug for TestFormula
impl Debug for TestFormula
Source§impl Default for TestFormula
impl Default for TestFormula
Source§fn default() -> TestFormula
fn default() -> TestFormula
Returns the “default value” for a type. Read more
Source§impl PartialEq for TestFormula
impl PartialEq for TestFormula
impl Eq for TestFormula
impl StructuralPartialEq for TestFormula
Auto Trait Implementations§
impl Freeze for TestFormula
impl RefUnwindSafe for TestFormula
impl Send for TestFormula
impl Sync for TestFormula
impl Unpin for TestFormula
impl UnwindSafe for TestFormula
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.