Trait Disconnectable

Source
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§

Source

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.

Source

fn disconnect_dag_ref<'s>(&'s self, other: &'s L) -> Dag<&'s L>

Same as Disconnectable::disconnect_dag_ref but takes self by reference.

Implementations on Foreign Types§

Source§

impl<L> Disconnectable<L> for Option<Arc<L>>

Source§

fn disconnect_dag_arc(self, other: Arc<L>) -> Dag<Arc<L>>

Source§

fn disconnect_dag_ref<'s>(&'s self, other: &'s L) -> Dag<&'s L>

Source§

impl<L> Disconnectable<L> for Arc<str>

Source§

fn disconnect_dag_arc(self, other: Arc<L>) -> Dag<Arc<L>>

Source§

fn disconnect_dag_ref<'s>(&'s self, other: &'s L) -> Dag<&'s L>

Source§

impl<L> Disconnectable<L> for Arc<L>

Source§

fn disconnect_dag_arc(self, other: Arc<L>) -> Dag<Arc<L>>

Source§

fn disconnect_dag_ref<'s>(&'s self, other: &'s L) -> Dag<&'s L>

Implementors§