Struct ucglib::build::opcode::environment::Environment [−][src]
Fields
val_cache: BTreeMap<String, Rc<Value>>
op_cache: Ops
converter_registry: ConverterRegistry
importer_registry: ImporterRegistry
assert_results: AssertCollector
stdout: Stdout
stderr: Stderr
env_vars: BTreeMap<String, String>
out_lock: BTreeSet<PathBuf>
Implementations
impl<Stdout: Write + Clone, Stderr: Write + Clone> Environment<Stdout, Stderr>
[src]
pub fn new(out: Stdout, err: Stderr) -> Self
[src]
pub fn new_with_vars(
out: Stdout,
err: Stderr,
vars: BTreeMap<String, String>
) -> Self
[src]
out: Stdout,
err: Stderr,
vars: BTreeMap<String, String>
) -> Self
pub fn get_env_vars_tuple(&self) -> Value
[src]
pub fn get_cached_path_val(&self, path: &String) -> Option<Rc<Value>>
[src]
pub fn update_path_val(&mut self, path: &String, val: Rc<Value>)
[src]
pub fn get_ops_for_path<P>(&mut self, path: P) -> Result<OpPointer, Error> where
P: Into<PathBuf> + Clone,
[src]
P: Into<PathBuf> + Clone,
pub fn record_assert_result(&mut self, desc: &str, ok: bool)
[src]
pub fn get_out_lock_for_path<P: AsRef<Path>>(&self, path: P) -> bool
[src]
pub fn set_out_lock_for_path<P: Into<PathBuf>>(&mut self, path: P)
[src]
pub fn reset_out_lock_for_path<P: AsRef<Path>>(&mut self, path: P)
[src]
pub fn stdout(&self) -> Stdout
[src]
pub fn stderr(&self) -> Stderr
[src]
pub fn convert_val(
&mut self,
typ: &str,
writer: &mut dyn Write,
val: Rc<Val>
) -> bool
[src]
&mut self,
typ: &str,
writer: &mut dyn Write,
val: Rc<Val>
) -> bool
Auto Trait Implementations
impl<Stdout, Stderr> !RefUnwindSafe for Environment<Stdout, Stderr>
impl<Stdout, Stderr> !Send for Environment<Stdout, Stderr>
impl<Stdout, Stderr> !Sync for Environment<Stdout, Stderr>
impl<Stdout, Stderr> Unpin for Environment<Stdout, Stderr> where
Stderr: Unpin,
Stdout: Unpin,
Stderr: Unpin,
Stdout: Unpin,
impl<Stdout, Stderr> !UnwindSafe for Environment<Stdout, Stderr>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,