Skip to main content

load_from_path

Function load_from_path 

Source
pub fn load_from_path(path: &Path) -> Option<LoadedInstructions>
Expand description

Read the file at path, truncate to MAX_INSTRUCTIONS_BYTES if oversized, and return a LoadedInstructions. Returns None if the file can’t be read or doesn’t exist.