pub struct ExprSet { /* private fields */ }Implementations§
Source§impl ExprSet
impl ExprSet
pub fn new(exprs: Vec<Expr>) -> Self
pub fn get(&self, name: impl AsRef<str>) -> Option<&Expr>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, expr: impl Into<Expr>)
pub fn insert(&mut self, name: impl Into<SmallStr>, expr: impl Into<Expr>)
pub fn iter(&self) -> impl Iterator<Item = (&SmallStr, &Expr)>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&SmallStr, &mut Expr)>
Trait Implementations§
impl StructuralPartialEq for ExprSet
Auto Trait Implementations§
impl Freeze for ExprSet
impl RefUnwindSafe for ExprSet
impl Send for ExprSet
impl Sync for ExprSet
impl Unpin for ExprSet
impl UnsafeUnpin for ExprSet
impl UnwindSafe for ExprSet
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