pub struct TernaryOperation<N: Network>(/* private fields */);
Expand description
The implementation of the binary operation.
Trait Implementations§
source§impl<N: Clone + Network> Clone for TernaryOperation<N>
impl<N: Clone + Network> Clone for TernaryOperation<N>
source§fn clone(&self) -> TernaryOperation<N>
fn clone(&self) -> TernaryOperation<N>
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<N: Hash + Network> Hash for TernaryOperation<N>
impl<N: Hash + Network> Hash for TernaryOperation<N>
source§impl<N: Network> Operation<N, Literal<N>, LiteralType, 3> for TernaryOperation<N>
impl<N: Network> Operation<N, Literal<N>, LiteralType, 3> for TernaryOperation<N>
source§fn evaluate(inputs: &[Literal<N>; 3]) -> Result<Literal<N>>
fn evaluate(inputs: &[Literal<N>; 3]) -> Result<Literal<N>>
Returns the result of evaluating the operation on the given inputs.
source§fn execute<A: Aleo<Network = N>>(inputs: &[Literal<A>; 3]) -> Result<Literal<A>>
fn execute<A: Aleo<Network = N>>(inputs: &[Literal<A>; 3]) -> Result<Literal<A>>
Returns the result of executing the operation on the given circuit inputs.
source§fn output_type(inputs: &[LiteralType; 3]) -> Result<LiteralType>
fn output_type(inputs: &[LiteralType; 3]) -> Result<LiteralType>
Returns the output type from the given input types.
source§impl<N: PartialEq + Network> PartialEq for TernaryOperation<N>
impl<N: PartialEq + Network> PartialEq for TernaryOperation<N>
source§fn eq(&self, other: &TernaryOperation<N>) -> bool
fn eq(&self, other: &TernaryOperation<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<N: Eq + Network> Eq for TernaryOperation<N>
impl<N: Network> StructuralEq for TernaryOperation<N>
impl<N: Network> StructuralPartialEq for TernaryOperation<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for TernaryOperation<N>where N: RefUnwindSafe,
impl<N> Send for TernaryOperation<N>
impl<N> Sync for TernaryOperation<N>
impl<N> Unpin for TernaryOperation<N>where N: Unpin,
impl<N> UnwindSafe for TernaryOperation<N>where N: 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.