Struct cafebabe::ParseOptions
source · pub struct ParseOptions { /* private fields */ }
Implementations§
source§impl ParseOptions
impl ParseOptions
pub fn default() -> Self
sourcepub fn parse_bytecode(&mut self, parse: bool) -> &mut ParseOptions
pub fn parse_bytecode(&mut self, parse: bool) -> &mut ParseOptions
Turns on or off parsing of bytecode from the Code attributes of methods. If parsing is enabled, the CodeData structure’s optional bytecode field will be populated (or parsing will fail entirely if bytecode parsing failed). If parsing is disabled, the CodeData structure’s optional bytecode field will be set to None. Parsing is enabled by default, but can be disabled to speed up parsing in cases where the parsed bytecode is not needed.