Struct ockam_abac::Env
source · pub struct Env(/* private fields */);
Implementations§
source§impl Env
impl Env
pub fn new() -> Self
pub fn new_from(v: BTreeMap<&str, Expr>) -> Self
pub fn get(&self, k: &str) -> Result<&Expr, EvalError>
pub fn contains(&self, k: &str) -> bool
pub fn put<K: Into<String>, E: Into<Expr>>(&mut self, k: K, v: E) -> &mut Self
pub fn del(&mut self, k: &str)
pub fn entries(&self) -> impl Iterator<Item = (&str, &Expr)>
pub fn clear(&mut self)
pub fn merge(&mut self, other: Env) -> Result<(), MergeError>
pub fn merge_right(&mut self, other: Env)
pub fn merge_left(&mut self, other: Env)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnwindSafe for Env
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
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