MCPcopy Create free account
hub / github.com/diem/move / display

Method display

language/move-prover/bytecode/src/stackless_bytecode.rs:719–729  ·  view source on GitHub ↗

Creates a format object for a bytecode in context of a function target.

(
        &'env self,
        func_target: &'env FunctionTarget<'env>,
        label_offsets: &'env BTreeMap<Label, CodeOffset>,
    )

Source from the content-addressed store, hash-verified

717impl Bytecode {
718 /// Creates a format object for a bytecode in context of a function target.
719 pub fn display<'env>(
720 &'env self,
721 func_target: &'env FunctionTarget<'env>,
722 label_offsets: &'env BTreeMap<Label, CodeOffset>,
723 ) -> BytecodeDisplay<'env> {
724 BytecodeDisplay {
725 bytecode: self,
726 func_target,
727 label_offsets,
728 }
729 }
730}
731
732/// A display object for a bytecode.

Callers 1

fmtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected