pub struct Row {
pub atoms: BTreeSet<Effect>,
pub tails: BTreeSet<RowVarId>,
}Expand description
An effect row: a set of atoms, plus row variables standing for the rest.
Fields§
§atoms: BTreeSet<Effect>§tails: BTreeSet<RowVarId>Implementations§
Source§impl Row
impl Row
pub fn empty() -> Row
pub fn of(atoms: impl IntoIterator<Item = Effect>) -> Row
pub fn var(v: RowVarId) -> Row
pub fn is_closed(&self) -> bool
pub fn is_pure(&self) -> bool
Sourcepub fn union(self, other: &Row) -> Row
pub fn union(self, other: &Row) -> Row
The union — the operation inference performs once per call.
pub fn add(&mut self, e: Effect)
Trait Implementations§
impl Eq for Row
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
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