Struct simplicity_sys::tests::TestOutput
source · pub struct TestOutput {
pub amr: CSha256Midstate,
pub cmr: CSha256Midstate,
pub imr: CSha256Midstate,
pub cost_bound: ubounded,
pub eval_result: SimplicityErr,
}
Expand description
The result of parsing, typechecking, and running a Simplicity program through the C FFI
Fields§
§amr: CSha256Midstate
The AMR of the root node
cmr: CSha256Midstate
The CMR of the root node
imr: CSha256Midstate
The IMR of the root node
cost_bound: ubounded
The cost bound of the program
eval_result: SimplicityErr
Whether or not evaluation succeded
Trait Implementations§
source§impl Clone for TestOutput
impl Clone for TestOutput
source§fn clone(&self) -> TestOutput
fn clone(&self) -> TestOutput
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 Debug for TestOutput
impl Debug for TestOutput
impl Copy for TestOutput
Auto Trait Implementations§
impl RefUnwindSafe for TestOutput
impl Send for TestOutput
impl Sync for TestOutput
impl Unpin for TestOutput
impl UnwindSafe for TestOutput
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