pub enum BoolSet {
False(HashSet<OpRef>, HashSet<Trait>),
True(HashSet<OpRef>, HashSet<Trait>),
}
Expand description
Expresses a Many:Many binary relationship between Ops and Traits.
Variants§
Implementations§
Source§impl BoolSet
impl BoolSet
pub fn new_false(ops_: &[OpRef], ts_: &[Trait]) -> Self
pub fn new_true(ops_: &[OpRef], ts_: &[Trait]) -> Self
pub fn get_ops(&self) -> &HashSet<OpRef>
pub fn get_ops_mut(&mut self) -> &mut HashSet<OpRef>
pub fn get_traits(&self) -> &HashSet<Trait>
pub fn get_traits_mut(&mut self) -> &mut HashSet<Trait>
Trait Implementations§
impl Eq for BoolSet
impl StructuralPartialEq for BoolSet
Auto Trait Implementations§
impl Freeze for BoolSet
impl !RefUnwindSafe for BoolSet
impl !Send for BoolSet
impl !Sync for BoolSet
impl Unpin for BoolSet
impl !UnwindSafe for BoolSet
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