Struct simplicity::node::ConstructData
source · pub struct ConstructData<J> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<J: Clone> Clone for ConstructData<J>
impl<J: Clone> Clone for ConstructData<J>
source§fn clone(&self) -> ConstructData<J>
fn clone(&self) -> ConstructData<J>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<J> CoreConstructible for ConstructData<J>
impl<J> CoreConstructible for ConstructData<J>
fn iden() -> Self
fn unit() -> Self
fn injl(child: &Self) -> Self
fn injr(child: &Self) -> Self
fn take(child: &Self) -> Self
fn drop_(child: &Self) -> Self
fn comp(left: &Self, right: &Self) -> Result<Self, Error>
fn case(left: &Self, right: &Self) -> Result<Self, Error>
fn assertl(left: &Self, right: Cmr) -> Result<Self, Error>
fn assertr(left: Cmr, right: &Self) -> Result<Self, Error>
fn pair(left: &Self, right: &Self) -> Result<Self, Error>
fn fail(entropy: FailEntropy) -> Self
fn const_word(word: Arc<Value>) -> Self
source§fn scribe(value: &Value) -> Self
fn scribe(value: &Value) -> Self
Create a DAG that takes any input and returns
value as constant output. Read moresource§fn bit_false() -> Self
fn bit_false() -> Self
Create a DAG that takes any input and returns bit
0 as constant output. Read moresource§fn bit_true() -> Self
fn bit_true() -> Self
Create a DAG that takes any input and returns bit
1 as constant output. Read moresource§fn cond(left: &Self, right: &Self) -> Result<Self, Error>
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 moresource§fn assert(child: &Self, hash: Cmr) -> Result<Self, Error>
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 moresource§fn not(child: &Self) -> Result<Self, Error>
fn not(child: &Self) -> Result<Self, Error>
Create a DAG that computes Boolean NOT of the
child. Read moresource§impl<J: Debug> Debug for ConstructData<J>
impl<J: Debug> Debug for ConstructData<J>
source§impl<J: Jet> DisconnectConstructible<Option<Arc<Node<Construct<J>>>>> for ConstructData<J>
impl<J: Jet> DisconnectConstructible<Option<Arc<Node<Construct<J>>>>> for ConstructData<J>
fn disconnect( left: &Self, right: &Option<Arc<ConstructNode<J>>> ) -> Result<Self, Error>
source§impl<J: Jet> JetConstructible<J> for ConstructData<J>
impl<J: Jet> JetConstructible<J> for ConstructData<J>
source§impl<J> WitnessConstructible<NoWitness> for ConstructData<J>
impl<J> WitnessConstructible<NoWitness> for ConstructData<J>
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> 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