Function cranelift_reader::parse_heap_command
source · [−]pub fn parse_heap_command<'a>(text: &str) -> ParseResult<Option<HeapCommand>>
Expand description
Parse a CLIF comment text
as a heap command.
Return:
Ok(None)
if the comment is not intended to be aHeapCommand
(i.e. does not start withheap
Ok(Some(heap))
if the comment is intended as aHeapCommand
and can be parsed to oneErr
otherwise.