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 a HeapCommand (i.e. does not start with heap
  • Ok(Some(heap)) if the comment is intended as a HeapCommand and can be parsed to one
  • Err otherwise.