MCPcopy Create free account
hub / github.com/archlinux/alpm / new

Method new

python-alpm/src/types/url.rs:17–20  ·  view source on GitHub ↗
(url: &str)

Source from the content-addressed store, hash-verified

15impl Url {
16 #[new]
17 fn new(url: &str) -> Result<Self, crate::types::Error> {
18 let inner = alpm_types::Url::from_str(url)?;
19 Ok(inner.into())
20 }
21
22 fn __str__(&self) -> String {
23 self.0.to_string()

Callers

nothing calls this directly

Calls 1

from_strFunction · 0.85

Tested by

no test coverage detected