Skip to main content

parse

Function parse 

Source
pub fn parse(uri_str: &str) -> Result<DataUri>
Expand description

Parse a data: URI into its DataUri components.

Accepts both data:,hello and data:image/png;base64,iVBORw... shapes. Rejects URIs that lack the mandatory , separator.