Enum drt_chain_vm::types::DctLocalRole
source · pub enum DctLocalRole {
None,
Mint,
Burn,
NftCreate,
NftAddQuantity,
NftBurn,
NftAddUri,
NftUpdateAttributes,
Transfer,
}
Expand description
The VM implementation for DctLocalRole, used internally in builtin functions.
There is another near-identical implementation in the framework, used for communicating with the VM.
It might be a good idea to move it to some “common ground” crate, between the framework and the VM.
Variants§
Implementations§
source§impl DctLocalRole
impl DctLocalRole
source§impl DctLocalRole
impl DctLocalRole
pub fn iter_all() -> Iter<'static, DctLocalRole>
Trait Implementations§
source§impl Clone for DctLocalRole
impl Clone for DctLocalRole
source§fn clone(&self) -> DctLocalRole
fn clone(&self) -> DctLocalRole
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 DctLocalRole
impl Debug for DctLocalRole
source§impl<'a> From<&'a [u8]> for DctLocalRole
impl<'a> From<&'a [u8]> for DctLocalRole
source§impl From<u16> for DctLocalRole
impl From<u16> for DctLocalRole
source§impl PartialEq for DctLocalRole
impl PartialEq for DctLocalRole
impl Copy for DctLocalRole
impl Eq for DctLocalRole
impl StructuralPartialEq for DctLocalRole
Auto Trait Implementations§
impl Freeze for DctLocalRole
impl RefUnwindSafe for DctLocalRole
impl Send for DctLocalRole
impl Sync for DctLocalRole
impl Unpin for DctLocalRole
impl UnwindSafe for DctLocalRole
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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