Type Alias PrecompileResult
pub type PrecompileResult = Result<PrecompileOutput, PrecompileErrors>;
Expand description
A precompile operation result.
Returns either Ok((gas_used, return_bytes))
or Err(error)
.
Aliased Type§
enum PrecompileResult {
Ok(PrecompileOutput),
Err(PrecompileErrors),
}
Variants§
Ok(PrecompileOutput)
Contains the success value
Err(PrecompileErrors)
Contains the error value
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes
Size for each variant:
Ok
: 40 bytesErr
: 40 bytes