pub struct BindingSet(/* private fields */);Expand description
A set of bindings used by predicates and null-extension proofs.
Implementations§
Source§impl BindingSet
impl BindingSet
pub const fn new() -> Self
pub fn insert(&mut self, binding: BindingId) -> bool
pub fn contains(&self, binding: BindingId) -> bool
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn is_subset(&self, other: &Self) -> bool
pub fn intersects(&self, other: &Self) -> bool
pub fn iter(&self) -> impl Iterator<Item = BindingId> + '_
pub fn without(&self, binding: BindingId) -> Self
Trait Implementations§
Source§impl Clone for BindingSet
impl Clone for BindingSet
Source§impl Debug for BindingSet
impl Debug for BindingSet
Source§impl Default for BindingSet
impl Default for BindingSet
impl Eq for BindingSet
Source§impl From<BindingId> for BindingSet
impl From<BindingId> for BindingSet
Source§impl FromIterator<BindingId> for BindingSet
impl FromIterator<BindingId> for BindingSet
Source§impl Hash for BindingSet
impl Hash for BindingSet
Source§impl Ord for BindingSet
impl Ord for BindingSet
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BindingSet
impl PartialEq for BindingSet
Source§impl PartialOrd for BindingSet
impl PartialOrd for BindingSet
impl StructuralPartialEq for BindingSet
Auto Trait Implementations§
impl Freeze for BindingSet
impl RefUnwindSafe for BindingSet
impl Send for BindingSet
impl Sync for BindingSet
impl Unpin for BindingSet
impl UnsafeUnpin for BindingSet
impl UnwindSafe for BindingSet
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