brane_exe::errorsTrait ReturnEdge
Source pub trait ReturnEdge {
type Ret;
// Required methods
fn to(self, pc: ProgramCounter) -> Result<Self::Ret, VmError>;
fn to_instr(
self,
pc: ProgramCounter,
instr: usize,
) -> Result<Self::Ret, VmError>;
}
Expand description
Trait that makes printing shit a bit easier.
Maps this result to a VmError that has only an edge.
§Arguments
edge
: The edge to insert.
Maps this result to a VmError that has some instructions.
§Arguments
edge
: The edge to insert.
instr
: The instruction to insert.
Maps this result to a VmError that has only an edge.
§Arguments
edge
: The edge to insert.
Maps this result to a VmError that has some instructions.
§Arguments
edge
: The edge to insert.
instr
: The instruction to insert.