revm_handler_interface::util

Type Alias FrameOrFrameResult

Source
pub type FrameOrFrameResult<FRAME> = FrameOrResultGen<FRAME, <FRAME as Frame>::FrameResult>;

Aliased Type§

enum FrameOrFrameResult<FRAME> {
    Frame(FRAME),
    Result(<FRAME as Frame>::FrameResult),
}

Variants§

§

Frame(FRAME)

§

Result(<FRAME as Frame>::FrameResult)

Implementations

Source§

impl<F, R> FrameOrResultGen<F, R>

Source

pub fn map_frame<F2>(self, f: impl FnOnce(F) -> F2) -> FrameOrResultGen<F2, R>

Source

pub fn map_result<R2>(self, f: impl FnOnce(R) -> R2) -> FrameOrResultGen<F, R2>