pub struct Bindings { /* private fields */ }Implementations§
Source§impl Bindings
impl Bindings
pub fn new(bindings: HashMap<String, HashMap<String, String>>) -> Bindings
pub fn env(env: HashMap<String, String>) -> Bindings
pub fn empty() -> Bindings
pub fn from_json(v: &Value) -> Result<Bindings, Error>
pub fn from_str(s: &str) -> Result<Bindings, Error>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Bindings, Error>
pub fn extend(&mut self, other: &Bindings) -> Result<(), Error>
pub fn translate(&self, module: &str, symbol: &str) -> Result<&str, Error>
pub fn to_string(&self) -> Result<String, Error>
pub fn to_json(&self) -> Value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bindings
impl RefUnwindSafe for Bindings
impl Send for Bindings
impl Sync for Bindings
impl Unpin for Bindings
impl UnwindSafe for Bindings
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