pub struct DecodedOutput {
pub output_index: u8,
pub kind: TransactionOutputKind,
pub capacity: u32,
/* private fields */
}Expand description
#[output] or return value, which writes a declared output
Fields§
§output_index: u8Index of the declared output that this #[output] or return value writes, which later
methods refer to
kind: TransactionOutputKindWhether the output is #[output] or a return value
capacity: u32Capacity of the declared output’s memory, whose alignment is [Alignment::MAX]
Implementations§
Source§impl DecodedOutput
impl DecodedOutput
Sourcepub const fn return_value_size(&self) -> Option<u32>
pub const fn return_value_size(&self) -> Option<u32>
Size of a return value as the payload declares it, the size of its type, since executors write the whole value.
None for #[output], which the method gets empty.
Trait Implementations§
Source§impl Clone for DecodedOutput
impl Clone for DecodedOutput
Source§fn clone(&self) -> DecodedOutput
fn clone(&self) -> DecodedOutput
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 Copy for DecodedOutput
Source§impl Debug for DecodedOutput
impl Debug for DecodedOutput
impl Eq for DecodedOutput
Source§impl PartialEq for DecodedOutput
impl PartialEq for DecodedOutput
impl StructuralPartialEq for DecodedOutput
Auto Trait Implementations§
impl Freeze for DecodedOutput
impl RefUnwindSafe for DecodedOutput
impl Send for DecodedOutput
impl Sync for DecodedOutput
impl Unpin for DecodedOutput
impl UnsafeUnpin for DecodedOutput
impl UnwindSafe for DecodedOutput
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