pub struct WitnessData<J> { /* private fields */ }Trait Implementations§
Source§impl<J: Clone> Clone for WitnessData<J>
impl<J: Clone> Clone for WitnessData<J>
Source§fn clone(&self) -> WitnessData<J>
fn clone(&self) -> WitnessData<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 WitnessData<J>
impl<J> CoreConstructible for WitnessData<J>
fn iden(inference_context: &Context) -> Self
fn unit(inference_context: &Context) -> 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(inference_context: &Context, entropy: FailEntropy) -> Self
fn const_word(inference_context: &Context, word: Value) -> Self
Source§fn inference_context(&self) -> &Context
fn inference_context(&self) -> &Context
Accessor for the type inference context used to create the object.
Source§fn scribe(inference_context: &Context, value: &Value) -> Self
fn scribe(inference_context: &Context, value: &Value) -> Self
Create a DAG that takes any input and returns
value as constant output. Read moreSource§fn bit_false(inference_context: &Context) -> Self
fn bit_false(inference_context: &Context) -> Self
Create a DAG that takes any input and returns bit
0 as constant output. Read moreSource§fn bit_true(inference_context: &Context) -> Self
fn bit_true(inference_context: &Context) -> 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 WitnessData<J>
impl<J: Debug> Debug for WitnessData<J>
Source§impl<J: Jet> DisconnectConstructible<Option<Arc<Node<Witness<J>>>>> for WitnessData<J>
impl<J: Jet> DisconnectConstructible<Option<Arc<Node<Witness<J>>>>> for WitnessData<J>
fn disconnect( left: &Self, right: &Option<Arc<WitnessNode<J>>>, ) -> Result<Self, Error>
Source§impl<J: Jet> JetConstructible<J> for WitnessData<J>
impl<J: Jet> JetConstructible<J> for WitnessData<J>
Auto Trait Implementations§
impl<J> Freeze for WitnessData<J>
impl<J> RefUnwindSafe for WitnessData<J>where
J: RefUnwindSafe,
impl<J> !Send for WitnessData<J>
impl<J> !Sync for WitnessData<J>
impl<J> Unpin for WitnessData<J>where
J: Unpin,
impl<J> UnwindSafe for WitnessData<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