pub struct Context<'a> {
pub db: &'a DB,
pub log: &'a mut Logger,
pub stack: Vec<Digest>,
}Fields§
§db: &'a DB§log: &'a mut Logger§stack: Vec<Digest>Implementations§
Source§impl Context<'_>
impl Context<'_>
pub fn empty(&mut self) -> Result<&mut Self>
pub fn import<T, S>( &mut self, base: impl AsRef<str>, targets: T, ) -> Result<&mut Self>
pub fn export(&mut self, dest: impl AsRef<str>) -> Result<&mut Self>
pub fn merge(&mut self) -> Result<&mut Self>
pub fn prefix(&mut self, prefix: impl AsRef<str>) -> Result<&mut Self>
pub fn filter(&mut self, pattern: impl AsRef<str>) -> Result<&mut Self>
pub fn rename( &mut self, pattern: impl AsRef<str>, replacement: impl AsRef<str>, ) -> Result<&mut Self>
pub fn download( &mut self, url: impl AsRef<str>, hash: impl AsRef<str>, ) -> Result<&mut Self>
pub fn download_impure(&mut self, url: impl AsRef<str>) -> Result<&mut Self>
pub fn cmd_impure(&mut self, cmd: impl AsRef<str>) -> Result<&mut Self>
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> !UnwindSafe for Context<'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