(url: Option<String>)
| 65 | } |
| 66 | |
| 67 | fn parse_url(url: Option<String>) -> PyResult<Option<rust_inline::Url>> { |
| 68 | Ok(if let Some(url) = url { |
| 69 | Some(rust_inline::Url::parse(url.as_str()).map_err(|error| UrlError { error, url })?) |
| 70 | } else { |
| 71 | None |
| 72 | }) |
| 73 | } |
| 74 | |
| 75 | /// StylesheetCache(size=8) |
| 76 | /// |