pub struct VarSet {
pub set: Vec<Var>,
pub has: VarMap<bool>,
}
Fields§
§set: Vec<Var>
§has: VarMap<bool>
Implementations§
Source§impl VarSet
impl VarSet
pub fn new() -> Self
pub fn new_with(var: Var) -> Self
pub fn len(&self) -> u32
pub fn reserve(&mut self, var: Var)
pub fn has(&self, var: Var) -> bool
pub fn insert(&mut self, var: Var)
pub fn clear(&mut self)
pub fn iter(&self) -> Iter<'_, Var>
pub fn remove(&mut self, i: u32)
pub fn swap(&mut self, a: u32, b: u32)
pub fn elements(&self) -> &[Var]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VarSet
impl RefUnwindSafe for VarSet
impl Send for VarSet
impl Sync for VarSet
impl Unpin for VarSet
impl UnwindSafe for VarSet
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