Struct snarkvm_synthesizer_program::logic::command::Branch
source · pub struct Branch<N: Network, const VARIANT: u8> { /* private fields */ }
Expand description
Compares first
and second
and jumps to position
, if the condition is met.
Implementations§
Trait Implementations§
source§impl<N: PartialEq + Network, const VARIANT: u8> PartialEq for Branch<N, VARIANT>
impl<N: PartialEq + Network, const VARIANT: u8> PartialEq for Branch<N, VARIANT>
impl<N: Eq + Network, const VARIANT: u8> Eq for Branch<N, VARIANT>
impl<N: Network, const VARIANT: u8> StructuralEq for Branch<N, VARIANT>
impl<N: Network, const VARIANT: u8> StructuralPartialEq for Branch<N, VARIANT>
Auto Trait Implementations§
impl<N, const VARIANT: u8> RefUnwindSafe for Branch<N, VARIANT>where N: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe,
impl<N, const VARIANT: u8> Send for Branch<N, VARIANT>
impl<N, const VARIANT: u8> Sync for Branch<N, VARIANT>
impl<N, const VARIANT: u8> Unpin for Branch<N, VARIANT>where N: Unpin, <N as Environment>::Field: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N, const VARIANT: u8> UnwindSafe for Branch<N, VARIANT>where N: UnwindSafe, <N as Environment>::Field: UnwindSafe, <N as Environment>::Projective: UnwindSafe, <N as Environment>::Scalar: 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.