pub struct ConstructData<J> { /* private fields */ }

Implementations§

source§

impl<J: Jet> ConstructData<J>

source

pub fn new(arrow: Arrow) -> Self

Constructs a new ConstructData from an (unfinalized) type arrow

source

pub fn arrow(&self) -> &Arrow

Accessor for the node’s arrow

Trait Implementations§

source§

impl<J: Clone> Clone for ConstructData<J>

source§

fn clone(&self) -> ConstructData<J>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<J> CoreConstructible for ConstructData<J>

source§

fn iden() -> Self

source§

fn unit() -> Self

source§

fn injl(child: &Self) -> Self

source§

fn injr(child: &Self) -> Self

source§

fn take(child: &Self) -> Self

source§

fn drop_(child: &Self) -> Self

source§

fn comp(left: &Self, right: &Self) -> Result<Self, Error>

source§

fn case(left: &Self, right: &Self) -> Result<Self, Error>

source§

fn assertl(left: &Self, right: Cmr) -> Result<Self, Error>

source§

fn assertr(left: Cmr, right: &Self) -> Result<Self, Error>

source§

fn pair(left: &Self, right: &Self) -> Result<Self, Error>

source§

fn fail(entropy: FailEntropy) -> Self

source§

fn const_word(word: Arc<Value>) -> Self

source§

fn scribe(value: &Value) -> Self

Create a DAG that takes any input and returns value as constant output. Read more
source§

fn bit_false() -> Self

Create a DAG that takes any input and returns bit 0 as constant output. Read more
source§

fn bit_true() -> Self

Create a DAG that takes any input and returns bit 1 as constant output. Read more
source§

fn cond(left: &Self, right: &Self) -> Result<Self, Error>

Create a DAG that takes a bit and an input, such that the left child is evaluated on the input if the bit is 1 (if branch) and the right child is evaluated on the input otherwise (else branch). Read more
source§

fn assert(child: &Self, hash: Cmr) -> Result<Self, Error>

Create a DAG that asserts that its child returns true, and fails otherwise. The hash identifies the assertion and is returned upon failure. Read more
source§

fn not(child: &Self) -> Result<Self, Error>

Create a DAG that computes Boolean NOT of the child. Read more
source§

fn and(left: &Self, right: &Self) -> Result<Self, Error>

Create a DAG that computes Boolean AND of the left and right child. Read more
source§

fn or(left: &Self, right: &Self) -> Result<Self, Error>

Create a DAG that computes Boolean OR of the left and right. Read more
source§

impl<J: Debug> Debug for ConstructData<J>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<J: Jet> DisconnectConstructible<Option<Arc<Node<Construct<J>>>>> for ConstructData<J>

source§

fn disconnect( left: &Self, right: &Option<Arc<ConstructNode<J>>> ) -> Result<Self, Error>

source§

impl<J: Jet> JetConstructible<J> for ConstructData<J>

source§

fn jet(jet: J) -> Self

source§

impl<J> WitnessConstructible<NoWitness> for ConstructData<J>

source§

fn witness(witness: NoWitness) -> Self

Auto Trait Implementations§

§

impl<J> RefUnwindSafe for ConstructData<J>
where J: RefUnwindSafe,

§

impl<J> Send for ConstructData<J>
where J: Send,

§

impl<J> Sync for ConstructData<J>
where J: Sync,

§

impl<J> Unpin for ConstructData<J>
where J: Unpin,

§

impl<J> UnwindSafe for ConstructData<J>
where J: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<J, X, W, T> Constructible<J, X, W> for T

source§

fn from_inner(inner: Inner<&Self, J, &X, W>) -> Result<Self, Error>

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V