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

Method from

alpm-package/src/package.rs:128–130  ·  view source on GitHub ↗

Creates an [`ExistingAbsoluteDir`] from an [`OutputDir`]. As [`OutputDir`] provides a more strict set of requirements, this can be infallible.

(value: &OutputDir)

Source from the content-addressed store, hash-verified

126 ///
127 /// As [`OutputDir`] provides a more strict set of requirements, this can be infallible.
128 fn from(value: &OutputDir) -> Self {
129 Self(value.to_path_buf())
130 }
131}
132
133impl TryFrom<&Path> for ExistingAbsoluteDir {

Callers

nothing calls this directly

Calls 1

to_path_bufMethod · 0.45

Tested by

no test coverage detected