pub struct Context<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Context<'a>
impl<'a> Context<'a>
pub fn new(
config_dir: PathBuf,
filter_options: FilterOptions<'a>,
path: Option<&'a Path>,
file: Option<&'a Path>
) -> Result<Self>
pub fn with_sauce_path(self, sauce_path: PathBuf) -> Self
pub fn with_settings(self, settings: Settings) -> Self
pub fn with_corpus(self, corpus: Corpus) -> Self
pub fn at_path<P: Into<PathBuf>>(self, path: P) -> Self
pub fn load_settings(&mut self, output: &mut Output)
pub fn settings(&self) -> &Settings
pub fn settings_mut(&mut self) -> &mut Settings
pub fn init_shell(&mut self, shell_kind: &dyn Shell, output: &mut Output)
pub fn execute_shell_command(
&mut self,
shell_kind: &dyn Shell,
command: &str,
output: &mut Output
)
pub fn create_saucefile(&self, output: &mut Output)
pub fn move_saucefile(&self, output: &mut Output, destination: &Path, copy: bool)
pub fn edit_saucefile(&mut self, shell_kind: &dyn Shell, output: &mut Output)
pub fn show(&mut self, target: Target, output: &mut Output)
pub fn clear(&mut self, shell_kind: &dyn Shell, output: &mut Output)
pub fn execute(
&mut self,
shell_kind: &dyn Shell,
autoload: bool,
output: &mut Output
)
pub fn cascade_paths(&self) -> impl Iterator<Item = PathBuf>
pub fn set_var<T: AsRef<str>>(
&mut self,
raw_values: &[(T, T)],
output: &mut Output
)
pub fn set_alias<T: AsRef<str>>(
&mut self,
raw_values: &[(T, T)],
output: &mut Output
)
pub fn set_function(&mut self, name: &str, body: &str, output: &mut Output)
pub fn set_file(&mut self, name: &str, body: &str, output: &mut Output)
pub fn set_config<T: AsRef<str>>(
&mut self,
values: &[(T, T)],
global: bool,
output: &mut Output
)
Trait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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