pub enum ValueExpr<T: ExtParam> {
Const(T),
CurrInputValue,
Input(IdxExpr),
Output(IdxExpr),
}
Expand description
Enum representing operations with transaction values. Every variant of this enum pushes a 32 byte value + 1 byte prefix on stack top.. These operations also support confidential values. This will abort when - Supplied index is out of bounds.
Variants§
Const(T)
A constant Value
CurrInputValue
Value under the current executing input
INSPECTCURRENTINPUTINDEX INPSECTINPUTVALUE
Input(IdxExpr)
Value(possibly confidential) at the given input index
i INPSECTINPUTVALUE
Output(IdxExpr)
Value(possibly confidential) at the given output index
i INPSECTOUTPUTVALUE
Implementations§
Source§impl ValueExpr<CovExtArgs>
impl ValueExpr<CovExtArgs>
Sourcepub fn push_to_builder(&self, builder: Builder) -> Builder
pub fn push_to_builder(&self, builder: Builder) -> Builder
Push this script to builder
Trait Implementations§
Source§impl<T: ExtParam> ArgFromStr for ValueExpr<T>
impl<T: ExtParam> ArgFromStr for ValueExpr<T>
Source§impl<T: Ord + ExtParam> Ord for ValueExpr<T>
impl<T: Ord + ExtParam> Ord for ValueExpr<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + ExtParam> PartialOrd for ValueExpr<T>
impl<T: PartialOrd + ExtParam> PartialOrd for ValueExpr<T>
impl<T: Eq + ExtParam> Eq for ValueExpr<T>
impl<T: ExtParam> StructuralPartialEq for ValueExpr<T>
Auto Trait Implementations§
impl<T> Freeze for ValueExpr<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValueExpr<T>where
T: RefUnwindSafe,
impl<T> Send for ValueExpr<T>where
T: Send,
impl<T> Sync for ValueExpr<T>where
T: Sync,
impl<T> Unpin for ValueExpr<T>where
T: Unpin,
impl<T> UnwindSafe for ValueExpr<T>where
T: 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