Function cranelift_reader::parse_run_command [−][src]
pub fn parse_run_command<'a>(
text: &str,
signature: &Signature
) -> ParseResult<Option<RunCommand>>
Expand description
Parse a CLIF comment text
as a run command.
Return:
Ok(None)
if the comment is not intended to be aRunCommand
(i.e. does not start withrun
orprint
Ok(Some(command))
if the comment is intended as aRunCommand
and can be parsed to oneErr
otherwise.