pub enum CheckedTransaction {
Script(Checked<Script>),
Create(Checked<Create>),
Mint(Checked<Mint>),
}
Expand description
The Enum version of Checked<Transaction>
allows getting the inner variant without losing
“checked” status.
It is possible to freely convert Checked<Transaction>
into CheckedTransaction
and vice
verse without the overhead.
Variants§
Trait Implementations§
source§impl Clone for CheckedTransaction
impl Clone for CheckedTransaction
source§fn clone(&self) -> CheckedTransaction
fn clone(&self) -> CheckedTransaction
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 Debug for CheckedTransaction
impl Debug for CheckedTransaction
source§impl From<Checked<Transaction>> for CheckedTransaction
impl From<Checked<Transaction>> for CheckedTransaction
source§fn from(checked: Checked<Transaction>) -> Self
fn from(checked: Checked<Transaction>) -> Self
Converts to this type from the input type.
source§impl From<CheckedTransaction> for Checked<Transaction>
impl From<CheckedTransaction> for Checked<Transaction>
source§fn from(checked: CheckedTransaction) -> Self
fn from(checked: CheckedTransaction) -> Self
Converts to this type from the input type.
source§impl Hash for CheckedTransaction
impl Hash for CheckedTransaction
source§impl PartialEq<CheckedTransaction> for CheckedTransaction
impl PartialEq<CheckedTransaction> for CheckedTransaction
source§fn eq(&self, other: &CheckedTransaction) -> bool
fn eq(&self, other: &CheckedTransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CheckedTransaction
impl StructuralEq for CheckedTransaction
impl StructuralPartialEq for CheckedTransaction
Auto Trait Implementations§
impl RefUnwindSafe for CheckedTransaction
impl Send for CheckedTransaction
impl Sync for CheckedTransaction
impl Unpin for CheckedTransaction
impl UnwindSafe for CheckedTransaction
Blanket Implementations§
source§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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