Skip to main content

parse

Function parse 

Source
pub fn parse(s: &str) -> Result<Cause, CauseParseError>
Expand description

Parse a cause reference.

A string with no SEPARATOR is a bare hash and parses as Cause::Local — this is the backward-compatibility path, and it is a path rather than a fallback: no existing database needs migrating, because every 64-hex caused_by entry ever written is already a valid input here and means exactly what it always meant.

Never guesses. Every rejection carries what it saw.