Skip to main content

from_code

Function from_code 

Source
pub fn from_code(version: Version, code: Vec<Instruction>) -> Program
Expand description

Build a Program from a version + flat instruction list. This is the ONE constructor used by both binary and text loading, so all Programs built from the same (version, code) compare equal regardless of source.