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

Method from

alpm-srcinfo/src/source_info/v1/package.rs:173–175  ·  view source on GitHub ↗

Creates a new [`Package`] from a [`Name`] by calling [`Package::new_with_defaults`].

(value: Name)

Source from the content-addressed store, hash-verified

171impl From<Name> for Package {
172 /// Creates a new [`Package`] from a [`Name`] by calling [`Package::new_with_defaults`].
173 fn from(value: Name) -> Self {
174 Package::new_with_defaults(value)
175 }
176}
177
178/// Architecture specific package properties for use in [`Package`].

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected