pub enum Output {
/// A coin output.
Coin: (),
/// A contract output.
Contract: (),
/// Remaining "change" from spending of a coin.
Change: (),
/// A variable output.
Variable: (),
/// A contract deployment.
ContractCreated: (),
}
Expand description
The output type for a transaction.
Variants
Coin: ()
A coin output.
Contract: ()
A contract output.
Change: ()
Remaining “change” from spending of a coin.
Variable: ()
A variable output.
ContractCreated: ()
A contract deployment.
Trait Implementations
impl AbiEncode for Output
impl AbiEncode for Output
fn abi_encode(self, buffer: Buffer) -> Buffer
impl AbiDecode for Output
impl AbiDecode for Output
fn abi_decode(refmut buffer: BufferReader) -> Self
impl Eq for Output
impl Eq for Output
fn eq(self, other: Self) -> bool
fn neq(self, other: Self) -> bool
fn neq(self, other: Self) -> bool
Evaluates if two values of the same type are not equal.
Additional Information
This function is inherited when eq()
is implemented.
Arguments
other
: [Self] - The value of the same type.
Returns
- [bool] -
true
if the two values are not equal, otherwisefalse
.
Examples
struct MyStruct {
val: u64,
}
impl Eq for MyStruct {
fn eq(self, other: Self) -> bool {
self.val == other.val
}
}
fn foo() {
let struct1 = MyStruct { val: 10 };
let struct2 = MyStruct { val: 2 };
let result = struct1 != struct2;
assert(result);
}