pub trait Disconnectable<L> {
// Required methods
fn disconnect_dag_arc(self, other: Arc<L>) -> Dag<Arc<L>>;
fn disconnect_dag_ref<'s>(&'s self, other: &'s L) -> Dag<&'s L>;
}
Expand description
Trait representing a “disconnected expression”.
Required Methods§
Sourcefn disconnect_dag_arc(self, other: Arc<L>) -> Dag<Arc<L>>
fn disconnect_dag_arc(self, other: Arc<L>) -> Dag<Arc<L>>
Given a generic left child, and treating self
as the disconnected right
child, produce a Dag
node representing a disconnect node.
If the disconnected expression is present, this should yield a Dag::Binary
.
If it is not present, this should yield a Dag::Unary
.
Sourcefn disconnect_dag_ref<'s>(&'s self, other: &'s L) -> Dag<&'s L>
fn disconnect_dag_ref<'s>(&'s self, other: &'s L) -> Dag<&'s L>
Same as Disconnectable::disconnect_dag_ref
but takes self by reference.