pub enum StackItem {
Number(i64),
Hash(HashValue),
Scalar(ScalarValue),
Commitment(CompressedCommitment<RistrettoPublicKey>),
PublicKey(CompressedKey<RistrettoPublicKey>),
Signature(CompressedCheckSigSchnorrSignature),
}Variants§
Number(i64)
Hash(HashValue)
Scalar(ScalarValue)
Commitment(CompressedCommitment<RistrettoPublicKey>)
PublicKey(CompressedKey<RistrettoPublicKey>)
Signature(CompressedCheckSigSchnorrSignature)
Implementations§
Trait Implementations§
Source§impl From<[u8; 32]> for StackItem
impl From<[u8; 32]> for StackItem
Source§fn from(item: ScalarValue) -> Self
fn from(item: ScalarValue) -> Self
Converts to this type from the input type.
Source§impl From<CompressedCommitment<RistrettoPublicKey>> for StackItem
impl From<CompressedCommitment<RistrettoPublicKey>> for StackItem
Source§fn from(item: CompressedCommitment<RistrettoPublicKey>) -> Self
fn from(item: CompressedCommitment<RistrettoPublicKey>) -> Self
Converts to this type from the input type.
Source§impl From<CompressedKey<RistrettoPublicKey>> for StackItem
impl From<CompressedKey<RistrettoPublicKey>> for StackItem
Source§fn from(item: CompressedKey<RistrettoPublicKey>) -> Self
fn from(item: CompressedKey<RistrettoPublicKey>) -> Self
Converts to this type from the input type.
Source§impl From<CompressedSchnorrSignature<RistrettoPublicKey, RistrettoSecretKey, CheckSigHashDomain>> for StackItem
impl From<CompressedSchnorrSignature<RistrettoPublicKey, RistrettoSecretKey, CheckSigHashDomain>> for StackItem
Source§fn from(item: CompressedCheckSigSchnorrSignature) -> Self
fn from(item: CompressedCheckSigSchnorrSignature) -> Self
Converts to this type from the input type.
impl Eq for StackItem
impl StructuralPartialEq for StackItem
Auto Trait Implementations§
impl !Freeze for StackItem
impl RefUnwindSafe for StackItem
impl Send for StackItem
impl Sync for StackItem
impl Unpin for StackItem
impl UnwindSafe for StackItem
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> 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