pub enum DecodedSlot<'payload> {
Address(&'payload Address),
Output(OutputRef),
}Expand description
#[slot] argument
Variants§
Address(&'payload Address)
Explicit address in the payload
Output(OutputRef)
Value that an earlier method wrote into a declared output. A return value is declared with the size of an address.
Trait Implementations§
Source§impl<'payload> Clone for DecodedSlot<'payload>
impl<'payload> Clone for DecodedSlot<'payload>
Source§fn clone(&self) -> DecodedSlot<'payload>
fn clone(&self) -> DecodedSlot<'payload>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'payload> Copy for DecodedSlot<'payload>
Source§impl<'payload> Debug for DecodedSlot<'payload>
impl<'payload> Debug for DecodedSlot<'payload>
impl<'payload> Eq for DecodedSlot<'payload>
Source§impl<'payload> PartialEq for DecodedSlot<'payload>
impl<'payload> PartialEq for DecodedSlot<'payload>
impl<'payload> StructuralPartialEq for DecodedSlot<'payload>
Auto Trait Implementations§
impl<'payload> Freeze for DecodedSlot<'payload>
impl<'payload> RefUnwindSafe for DecodedSlot<'payload>
impl<'payload> Send for DecodedSlot<'payload>
impl<'payload> Sync for DecodedSlot<'payload>
impl<'payload> Unpin for DecodedSlot<'payload>
impl<'payload> UnsafeUnpin for DecodedSlot<'payload>
impl<'payload> UnwindSafe for DecodedSlot<'payload>
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