Struct ucglib::build::opcode::environment::Environment[][src]

pub struct Environment<Stdout, Stderr> where
    Stdout: Write + Clone,
    Stderr: Write + Clone
{ pub val_cache: BTreeMap<String, Rc<Value>>, pub op_cache: Ops, pub converter_registry: ConverterRegistry, pub importer_registry: ImporterRegistry, pub assert_results: AssertCollector, pub stdout: Stdout, pub stderr: Stderr, pub env_vars: BTreeMap<String, String>, pub out_lock: BTreeSet<PathBuf>, }

Fields

val_cache: BTreeMap<String, Rc<Value>>op_cache: Opsconverter_registry: ConverterRegistryimporter_registry: ImporterRegistryassert_results: AssertCollectorstdout: Stdoutstderr: Stderrenv_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]

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]

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]

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

impl<Stdout, Stderr> !UnwindSafe for Environment<Stdout, Stderr>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.