Skip to main content

parse_reference

Function parse_reference 

Source
pub fn parse_reference(reference: &str) -> Option<i32>
Expand description

The image id a reference names: hammer://image/3, or <hammer://image/3>, is 3. None for anything else, such as another scheme, an id that is empty, not all ASCII digits, or too large for an i32.