Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/archlinux/alpm
/ functions
Functions
1,873 in github.com/archlinux/alpm
⨍
Functions
1,873
◇
Types & classes
375
↳
Endpoints
4
Method
from
Converts a [`std::num::ParseIntError`] into an [`Error::InvalidInteger`].
alpm-types/src/error.rs:207
Method
from
(key_id: OpenPGPKeyId)
alpm-types/src/openpgp.rs:86
Method
from
Converts an [`UnknownArchitecture`] into a [`SystemArchitecture`].
alpm-types/src/system.rs:209
Method
from
Creates a [`String`] from a [`PackageFileName`].
alpm-types/src/package/file_name.rs:443
Method
from
Creates a [`String`] from [`MetadataFileName`]. # Examples ``` use alpm_types::MetadataFileName; # fn main() -> Result<(), alpm_types::Error> { ass
alpm-types/src/package/contents.rs:111
Method
from
Creates a [`Version`] from a [`MinimalVersion`].
alpm-types/src/version/pkg_minimal.rs:294
Method
from
Creates a [`Version`] from a [`FullVersion`].
alpm-types/src/version/pkg_full.rs:318
Method
from_base
Creates a basic, architecture-specific, but incomplete [`MergedPackage`]. Takes an [`Architecture`] (which defines the architecture for which to crea
alpm-srcinfo/src/source_info/v1/merged.rs:262
Method
from_base_and_package
Creates the fully resolved, architecture-specific metadata representation of a package. Takes an [`Architecture`] (which defines the architecture for
alpm-srcinfo/src/source_info/v1/merged.rs:212
Method
from_file
Reads the file at the specified path and converts it into a [`SourceInfoV1`] struct. # Errors Returns an [`Error`] if the file cannot be read or par
alpm-srcinfo/src/source_info/v1/mod.rs:86
Method
from_file
Creates [`Self`] from file. # Note Implementations of this function are expected to automatically detect a [`FileFormatSchema`] that the resulting [
alpm-common/src/traits/metadata_file.rs:35
Method
from_file
Creates a [`BridgeOutput`] from a [`PKGBUILD`] at a given path, by calling the [`alpm-pkgbuild-bridge`] script. [`PKGBUILD`]: https://man.archlinux.o
alpm-pkgbuild/src/bridge/parser.rs:467
Method
from_file_with_schema
Creates a [`BuildInfo`] from `file`, optionally validated using a [`BuildInfoSchema`]. Opens the `file` and defers to [`BuildInfo::from_reader_with_s
alpm-buildinfo/src/build_info/mod.rs:99
Method
from_file_with_schema
Creates a new [`RepoFiles`] from a file [`Path`] and an optional [`RepoFilesSchema`]. # Note Delegates to [`Self::from_reader_with_schema`] after op
alpm-repo-db/src/files/mod.rs:104
Method
from_file_with_schema
Creates a [`RepoDescFile`] from a file on disk, optionally validated using a [`RepoDescSchema`]. Opens the file and defers to [`RepoDescFile::from_re
alpm-repo-db/src/desc/file.rs:131
Method
from_file_with_schema
Creates a [`Mtree`] from `file`, optionally validated using a [`MtreeSchema`]. Opens the `file` and defers to [`Mtree::from_reader_with_schema`]. #
alpm-mtree/src/mtree/mod.rs:203
Method
from_file_with_schema
Creates a [`SourceInfo`] from `file`, optionally validated using a [`SourceInfoSchema`]. Opens the `file` and defers to [`SourceInfo::from_reader_wit
alpm-srcinfo/src/source_info/mod.rs:82
Method
from_file_with_schema
Creates a new [`DbFiles`] from a file [`Path`] and an optional [`DbFilesSchema`]. # Note Delegates to [`Self::from_reader_with_schema`] after openin
alpm-db/src/files/mod.rs:111
Method
from_file_with_schema
Creates a [`DbDescFile`] from a file on disk, optionally validated using a [`DbDescSchema`]. Opens the file and defers to [`DbDescFile::from_reader_w
alpm-db/src/desc/file.rs:112
Method
from_file_with_schema
Creates a [`PackageInfo`] from `file`, optionally validated using a [`PackageInfoSchema`]. Opens the `file` and defers to [`PackageInfo::from_reader_
alpm-pkginfo/src/package_info/mod.rs:93
Method
from_offset_datetime
Converts a [`OffsetDateTime`] into a [`BuildDate`]. Uses the unix timestamp of the [`OffsetDateTime`].
alpm-types/src/date.rs:34
Method
from_parsed
Creates a new [`PackageBase`] instance from a [`RawPackageBase`]. # Parameters - `parsed`: The [`RawPackageBase`] representation of the SRCINFO data
alpm-srcinfo/src/source_info/v1/package_base.rs:274
Method
from_parsed
Creates a new [`Package`] instance from a [`RawPackage`]. # Parameters - `parsed`: The [`RawPackage`] representation of the SRCINFO data. The input
alpm-srcinfo/src/source_info/v1/package.rs:303
Method
from_path
Loads a [`LintConfiguration`] from a TOML configuration file. Reads the file at the specified path and parses it as TOML to create a configuration in
alpm-lint-config/src/lint_config.rs:64
Method
from_pkgbuild
Creates a [`SourceInfoV1`] from a [`PKGBUILD`] file. # Errors Returns an error if - The `PKGBUILD` cannot be read. - a required field is not set, -
alpm-srcinfo/src/source_info/v1/mod.rs:128
Method
from_raw
Reads raw [`SourceInfoContent`] from a first parsing step and converts it into a [`SourceInfoV1`].
alpm-srcinfo/src/source_info/v1/mod.rs:189
Method
from_reader
Creates [`Self`] from a [`Read`] implementer. # Note Implementations of this function are expected to automatically detect a [`FileFormatSchema`] th
alpm-common/src/traits/metadata_file.rs:86
Method
from_reader_with_schema
Creates a [`BuildInfo`] from a `reader`, optionally validated using a [`BuildInfoSchema`]. Reads the `reader` to string and defers to [`BuildInfo::fr
alpm-buildinfo/src/build_info/mod.rs:174
Method
from_reader_with_schema
Creates a new [`RepoFiles`] from a [`Read`] implementation and an optional [`RepoFilesSchema`]. # Note Delegates to [`Self::from_str_with_schema`] a
alpm-repo-db/src/files/mod.rs:166
Method
from_reader_with_schema
Creates a [`RepoDescFile`] from any readable stream, optionally validated using a [`RepoDescSchema`]. Reads the `reader` to a string buffer and defer
alpm-repo-db/src/desc/file.rs:227
Method
from_reader_with_schema
Creates a [`Mtree`] from a `reader`, optionally validated using a [`MtreeSchema`]. Reads the `reader` to string (and decompresses potentially gzip co
alpm-mtree/src/mtree/mod.rs:272
Method
from_reader_with_schema
Creates a [`SourceInfo`] from a `reader`, optionally validated using a [`SourceInfoSchema`]. Reads the `reader` to string and defers to [`SourceInfo:
alpm-srcinfo/src/source_info/mod.rs:150
Method
from_reader_with_schema
Creates a new [`DbFiles`] from a [`Read`] implementation and an optional [`DbFilesSchema`]. # Note Delegates to [`Self::from_str_with_schema`] after
alpm-db/src/files/mod.rs:170
Method
from_reader_with_schema
Creates a [`DbDescFile`] from any readable stream, optionally validated using a [`DbDescSchema`]. Reads the `reader` to a string buffer and defers to
alpm-db/src/desc/file.rs:203
Method
from_reader_with_schema
Creates a [`PackageInfo`] from a `reader`, optionally validated using a [`PackageInfoSchema`]. Reads the `reader` to string and defers to [`PackageIn
alpm-pkginfo/src/package_info/mod.rs:164
Method
from_rule
Creates a new [`LintIssue`] from a [`LintRule`] and [`LintIssueType`].
alpm-lint/src/issue/mod.rs:35
Method
from_script_output
Creates a [`BridgeOutput`] from some [`alpm-pkgbuild-bridge`] script output. This function is mostly exposed for testing, consider using [`Self::from
alpm-pkgbuild/src/bridge/parser.rs:477
Method
from_stdin
Creates [`Self`] from [`stdin`]. # Note Implementations of this function are expected to automatically detect a [`FileFormatSchema`] that the result
alpm-common/src/traits/metadata_file.rs:57
Method
from_stdin_with_schema
Creates [`Self`] from [`stdin`], optionally validated by a `schema`. If a [`FileFormatSchema`] is provided, [`Self`] must be validated using it. The
alpm-common/src/traits/metadata_file.rs:70
Method
from_str
Creates a [`BuildInfoSchema`] from string slice `s`. Relies on [`SchemaVersion::from_str`] to create a corresponding [`BuildInfoSchema`] from `s`. #
alpm-buildinfo/src/schema.rs:178
Method
from_str
(s: &str)
alpm-buildinfo/src/cli.rs:48
Method
from_str
Creates a [`BuildInfo`] from string slice `s`. Calls [`BuildInfo::from_str_with_schema`] with `schema` set to [`None`]. # Errors Returns an error i
alpm-buildinfo/src/build_info/mod.rs:303
Method
from_str
Create a BuildInfoV2 from a &str # Errors Returns an `Error` if any of the fields in `input` can not be validated according to `BuildInfoV2` or thei
alpm-buildinfo/src/build_info/v2.rs:145
Method
from_str
Create a BuildInfoV1 from a &str # Errors Returns an `Error` if any of the fields in `input` can not be validated according to `BuildInfoV1` or thei
alpm-buildinfo/src/build_info/v1.rs:127
Method
from_str
Creates a new [`RepoFiles`] from string slice. # Note Delegates to [`Self::from_str_with_schema`] while not providing a [`RepoFilesSchema`]. # Erro
alpm-repo-db/src/files/mod.rs:243
Method
from_str
Creates a new [`RepoFilesV1`] from a string slice. # Note Delegates to the [`TryFrom`] [`Vec`] of [`PathBuf`] implementation, after the string slice
alpm-repo-db/src/files/v1.rs:319
Method
from_str
Creates a [`RepoDescFileV2`] from a string slice. Parses the input according to the [alpm-repo-descv2] specification and constructs a structured [`Re
alpm-repo-db/src/desc/v2.rs:324
Method
from_str
Creates a [`RepoDescFile`] from a string slice. Internally calls [`RepoDescFile::from_str_with_schema`] with `schema` set to [`None`]. # Errors Ret
alpm-repo-db/src/desc/file.rs:404
Method
from_str
Creates a [`RepoDescFileV1`] from a string slice. Parses the input according to the [alpm-repo-descv1] specification and constructs a structured [`Re
alpm-repo-db/src/desc/v1.rs:336
Method
from_str
Parses a [`RepoDescSchema`] from a version string. # Errors Returns an error if: - the input string is not a valid version, - or the version does n
alpm-repo-db/src/desc/schema.rs:255
Method
from_str
(s: &str)
python-alpm/src/types/relation.rs:301
Method
from_str
(req: &str)
python-alpm/src/types/requirement.rs:19
Method
from_str
(version: &str)
python-alpm/src/types/version.rs:66
Method
from_str
Creates an [`MtreeSchema`] from string slice `s`. Relies on [`SchemaVersion::from_str`] to create a corresponding [`MtreeSchema`] from `s`. # Errors
alpm-mtree/src/schema.rs:168
Method
from_str
Creates a [`Mtree`] from string slice `s`. Calls [`Mtree::from_str_with_schema`] with `schema` set to [`None`]. # Errors Returns an error if - a [`
alpm-mtree/src/mtree/mod.rs:394
Method
from_str
Creates a [`SourceInfoSchema`] from string slice `s`. Relies on [`SchemaVersion::from_str`] to create a corresponding [`SourceInfoSchema`] from `s`.
alpm-srcinfo/src/schema.rs:147
Method
from_str
Creates a [`SourceInfo`] from string slice `s`. Calls [`SourceInfo::from_str_with_schema`] with `schema` set to [`None`]. # Errors Returns an error
alpm-srcinfo/src/source_info/mod.rs:241
Method
from_str
Creates a new [`DbFiles`] from string slice. # Note Delegates to [`Self::from_str_with_schema`] while not providing a [`DbFilesSchema`]. # Errors
alpm-db/src/files/mod.rs:245
Method
from_str
Creates a new [`DbFilesV1`] from a string slice. # Note Delegates to the [`TryFrom`] [`Vec`] of [`PathBuf`] implementation, after the string slice h
alpm-db/src/files/v1.rs:594
Method
from_str
Creates a [`DbDescFileV2`] from a string slice. Parses the input according to the [alpm-db-descv2] specification (version 2) and constructs a structu
alpm-db/src/desc/v2.rs:280
Method
from_str
Creates a [`DbDescFile`] from a string slice. Internally calls [`DbDescFile::from_str_with_schema`] with `schema` set to [`None`]. # Errors Returns
alpm-db/src/desc/file.rs:360
Method
from_str
Creates a [`DbDescFileV1`] from a string slice. Parses the input according to the [alpm-db-descv1] specification and constructs a structured [`DbDesc
alpm-db/src/desc/v1.rs:309
Method
from_str
Parses a [`DbDescSchema`] from a version string. # Errors Returns an error if: - the input string is not a valid version, - or the version does not
alpm-db/src/desc/schema.rs:180
Method
from_str
Creates a new `Url` instance from a string slice. ## Examples ``` use std::str::FromStr; use alpm_types::Url; # fn main() -> Result<(), alpm_types
alpm-types/src/url.rs:94
Method
from_str
(s: &str)
alpm-types/src/pkg.rs:86
Method
from_str
Create a BuildTool from a string
alpm-types/src/name.rs:95
Method
from_str
Parses a `Source` from string. It is either a filename (in the same directory as the PKGBUILD) or a url, optionally prefixed by a destination file na
alpm-types/src/source.rs:95
Method
from_str
Create a new Checksum from a hex string and return it in a Result The input is processed as a lowercase string. An Error is returned, if the input le
alpm-types/src/checksum.rs:424
Method
from_str
Creates a [`MakepkgOption`] from string slice.
alpm-types/src/env.rs:138
Method
from_str
Parses an absolute path from a string # Errors Returns an error if the path is not absolute
alpm-types/src/path.rs:70
Method
from_str
Creates a new `License` instance from a string slice. If the input is a valid SPDX license expression, it will be marked as such; otherwise, it will
alpm-types/src/license.rs:172
Method
from_str
(s: &str)
alpm-types/src/openpgp.rs:74
Method
from_str
Creates a [`SystemArchitecture`] from a string slice. Delegates to [`SystemArchitecture::parser`]. # Errors Returns an error if [`SystemArchitectur
alpm-types/src/system.rs:145
Method
from_str
Creates a [`PackageFileName`] from a string slice. Delegates to [`PackageFileName::parser`]. # Errors Returns an error if [`PackageFileName::parser
alpm-types/src/package/file_name.rs:472
Method
from_str
Creates a [`MetadataFileName`] from string slice. # Errors Returns an error if `s` does not equal the string representation of a [`MetadataFileName`
alpm-types/src/package/contents.rs:81
Method
from_str
Creates a new [`Version`] from a string slice. Delegates to [`Version::parser`]. # Errors Returns an error if [`Version::parser`] fails.
alpm-types/src/version/pkg_generic.rs:151
Method
from_str
Creates a new [`MinimalVersion`] from a string slice. Delegates to [`MinimalVersion::parser`]. # Errors Returns an error if [`Version::parser`] fai
alpm-types/src/version/pkg_minimal.rs:192
Method
from_str
Creates a [`BuildToolVersion`] from a string slice. # Errors Returns an error if - `s` contains no '-' and `s` is not a valid [`MinimalVersion`], -
alpm-types/src/version/buildtool.rs:124
Method
from_str
Creates a new [`FullVersion`] from a string slice. Delegates to [`FullVersion::parser`]. # Errors Returns an error if [`Version::parser`] fails.
alpm-types/src/version/pkg_full.rs:215
Method
from_str
Creates a new [`VersionRequirement`] from a string slice. Delegates to [`VersionRequirement::parser`]. # Errors Returns an error if [`VersionRequir
alpm-types/src/version/requirement.rs:335
Method
from_str
Create an Epoch from a string and return it in a Result
alpm-types/src/version/base.rs:83
Method
from_str
Create a new SchemaVersion from a string When providing a non-semver string with only a number (i.e. no minor or patch version), the number is treate
alpm-types/src/version/schema.rs:57
Method
from_str
(s: &str)
alpm-types/src/relation/soname.rs:41
Method
from_str
Parses a [`PackageRelation`] from a string slice. Delegates to [`PackageRelation::parser`]. # Errors Returns an error if [`PackageRelation::parser`
alpm-types/src/relation/base.rs:181
Method
from_str
Creates a [`RelationOrSoname`] from a string slice. Relies on [`RelationOrSoname::parser`] to recognize types in `input` and create a [`RelationOrSon
alpm-types/src/relation/composite.rs:151
Method
from_str
Creates a [`PackageInfoSchema`] from string slice `s`. Relies on [`SchemaVersion::from_str`] to create a corresponding [`PackageInfoSchema`] from `s`
alpm-pkginfo/src/schema.rs:196
Method
from_str
(s: &str)
alpm-pkginfo/src/cli.rs:53
Method
from_str
Creates a [`PackageInfo`] from string slice `s`. Calls [`PackageInfo::from_str_with_schema`] with `schema` set to [`None`]. # Errors Returns an err
alpm-pkginfo/src/package_info/mod.rs:286
Method
from_str
Create a PackageInfoV2 from a &str ## Errors Returns an `Error` if any of the fields in `input` can not be validated according to `PackageInfoV2` or
alpm-pkginfo/src/package_info/v2.rs:188
Method
from_str
Create a PackageInfoV1 from a &str ## Errors Returns an `Error` if any of the fields in `input` can not be validated according to `PackageInfoV1` or
alpm-pkginfo/src/package_info/v1.rs:181
Method
from_str_with_schema
Creates a [`BuildInfo`] from string slice, optionally validated using a [`BuildInfoSchema`]. If `schema` is [`None`] attempts to detect the [`BuildIn
alpm-buildinfo/src/build_info/mod.rs:265
Method
from_str_with_schema
Creates a new [`RepoFiles`] from a string slice and an optional [`RepoFilesSchema`]. # Errors Returns an error if - `schema` is [`None`] and a [`Re
alpm-repo-db/src/files/mod.rs:216
Method
from_str_with_schema
Creates a [`RepoDescFile`] from a string slice, optionally validated using a [`RepoDescSchema`]. If `schema` is [`None`], automatically infers the sc
alpm-repo-db/src/desc/file.rs:368
Method
from_str_with_schema
Creates a [`Mtree`] from string slice, optionally validated using a [`MtreeSchema`]. If `schema` is [`None`] attempts to detect the [`MtreeSchema`] f
alpm-mtree/src/mtree/mod.rs:352
Method
from_str_with_schema
Creates a [`SourceInfo`] from string slice, optionally validated using a [`SourceInfoSchema`]. If `schema` is [`None`] attempts to detect the [`Sourc
alpm-srcinfo/src/source_info/mod.rs:212
Method
from_str_with_schema
Creates a new [`DbFiles`] from a string slice and an optional [`DbFilesSchema`]. # Errors Returns an error if - `schema` is [`None`] and a [`DbFile
alpm-db/src/files/mod.rs:218
Method
from_str_with_schema
Creates a [`DbDescFile`] from a string slice, optionally validated using a [`DbDescSchema`]. If `schema` is [`None`], automatically infers the schema
alpm-db/src/desc/file.rs:324
Method
from_str_with_schema
Creates a [`PackageInfo`] from string slice, optionally validated using a [`PackageInfoSchema`]. If `schema` is [`None`] attempts to detect the [`Pac
alpm-pkginfo/src/package_info/mod.rs:248
Method
from_string
Parses a SRCINFO file's content into a [`SourceInfoV1`] struct. # Error This function returns two types of errors. 1. An [`Error`] is returned if th
alpm-srcinfo/src/source_info/v1/mod.rs:172
Method
from_valid_spdx
Creates a new license from a valid SPDX identifier ## Examples ``` use alpm_types::{Error, License}; # fn main() -> Result<(), alpm_types::Error> {
alpm-types/src/license.rs:120
← previous
next →
801–900 of 1,873, ranked by callers