pub struct Computation {
pub comp_type: ComputationType,
pub parameters: Vec<u8>,
}
Expand description
Represents a computation that can be proven with ZKPs
Fields§
§comp_type: ComputationType
The computation type
parameters: Vec<u8>
Parameters for the computation
Trait Implementations§
Source§impl Clone for Computation
impl Clone for Computation
Source§fn clone(&self) -> Computation
fn clone(&self) -> Computation
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for Computation
impl RefUnwindSafe for Computation
impl Send for Computation
impl Sync for Computation
impl Unpin for Computation
impl UnwindSafe for Computation
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