Skip to main content

Env

Trait Env 

Source
pub trait Env {
    // Required method
    fn value(&self, key: &SymbolKey, width: Width) -> Option<BitVec>;
}
Expand description

Values for symbols, used by Context::eval.

Required Methods§

Source

fn value(&self, key: &SymbolKey, width: Width) -> Option<BitVec>

The value bound to the symbol key of width width, if any.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Env for BTreeMap<SymbolKey, BitVec>

Source§

fn value(&self, key: &SymbolKey, _width: Width) -> Option<BitVec>

Source§

impl Env for [(SymbolKey, BitVec)]

Source§

fn value(&self, key: &SymbolKey, _width: Width) -> Option<BitVec>

Source§

impl<S: BuildHasher> Env for HashMap<SymbolKey, BitVec, S>

Source§

fn value(&self, key: &SymbolKey, _width: Width) -> Option<BitVec>

Implementors§