#[non_exhaustive]pub enum ScriptArgsError {
Decode(FeltReprError),
NonZeroPadding,
TrailingData,
NonWordMultipleLength,
AdviceProviderUnavailable,
}Expand description
Failure decoding transaction-script arguments from the TX_SCRIPT_ARGS word.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Decode(FeltReprError)
A value failed to decode from its felt representation.
NonZeroPadding
A felt in the zero-padding region of the encoding was not zero.
TrailingData
A whole word or more of data remained after decoding the value (commitment mode).
NonWordMultipleLength
The advice value’s length was not a whole number of words (commitment mode).
Commitment-mode decoding was attempted without the Miden VM’s advice provider
(i.e. off-chain). Word-mode decoding and decode_preimage work everywhere.
Trait Implementations§
Source§impl Clone for ScriptArgsError
impl Clone for ScriptArgsError
Source§impl Debug for ScriptArgsError
impl Debug for ScriptArgsError
Source§impl Display for ScriptArgsError
impl Display for ScriptArgsError
impl Eq for ScriptArgsError
Source§impl From<FeltReprError> for ScriptArgsError
impl From<FeltReprError> for ScriptArgsError
Source§fn from(err: FeltReprError) -> Self
fn from(err: FeltReprError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScriptArgsError
impl PartialEq for ScriptArgsError
impl StructuralPartialEq for ScriptArgsError
Auto Trait Implementations§
impl Freeze for ScriptArgsError
impl RefUnwindSafe for ScriptArgsError
impl Send for ScriptArgsError
impl Sync for ScriptArgsError
impl Unpin for ScriptArgsError
impl UnsafeUnpin for ScriptArgsError
impl UnwindSafe for ScriptArgsError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more