pub struct Playground<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Playground<'a>
impl<'a> Playground<'a>
pub fn root(&self) -> &AbsolutePath
pub fn cwd(&self) -> &AbsolutePath
pub fn back_to_playground(&mut self) -> &mut Self
pub fn play(&mut self) -> &mut Self
pub fn setup(topic: &str, block: impl FnOnce(Dirs, &mut Playground<'_>))
pub fn with_config(&mut self, source_file: AbsolutePathBuf) -> &mut Self
pub fn with_env(&mut self, name: &str, value: &str) -> &mut Self
pub fn get_config(&self) -> Option<&str>
pub fn build(&mut self) -> Director
pub fn cococo(&mut self, arg: &str) -> Director
pub fn pipeline(&mut self, commands: &str) -> Director
pub fn mkdir(&mut self, directory: &str) -> &mut Self
pub fn symlink( &mut self, from: impl AsRef<Path>, to: impl AsRef<Path>, ) -> &mut Self
pub fn with_files(&mut self, files: &[Stub<'_>]) -> &mut Self
pub fn within(&mut self, directory: &str) -> &mut Self
pub fn glob_vec(pattern: &str) -> Vec<PathBuf>
Auto Trait Implementations§
impl<'a> Freeze for Playground<'a>
impl<'a> RefUnwindSafe for Playground<'a>
impl<'a> Send for Playground<'a>
impl<'a> Sync for Playground<'a>
impl<'a> Unpin for Playground<'a>
impl<'a> UnwindSafe for Playground<'a>
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