MCPcopy Create free account

hub / github.com/archlinux/alpm / functions

Functions1,873 in github.com/archlinux/alpm

Functionname_parse_error
(#[case] input: &str)
alpm-types/src/name.rs:351
Methodnew
Creates a new [`OutputDir`] from `path`. Creates a directory at `path` if it does not exist yet. Also creates any missing parent directories. # Erro
alpm-package/src/config.rs:37
Methodnew
Creates a new [`InputDir`] from `path`. # Errors Returns an error if - `path` is not absolute, - `path` does not exist, - the metadata of `path` ca
alpm-package/src/input.rs:126
Methodnew
Creates a new [`ExistingAbsoluteDir`] from `path`. Creates a directory at `path` if it does not exist yet. # Errors Returns an error if - `path` i
alpm-package/src/package.rs:67
Methodnew
Creates a new [`RepoFilesV1PathErrors`].
alpm-repo-db/src/files/v1.rs:124
Methodnew
( name: &str, version: Option<crate::types::version::PackageVersion>, )
python-alpm/src/types/relation.rs:96
Methodnew
(url: &str)
python-alpm/src/types/url.rs:17
Methodnew
(source: &str)
python-alpm/src/types/source.rs:14
Methodnew
(comparison: VersionComparison, version: crate::types::version::Version)
python-alpm/src/types/requirement.rs:14
Methodnew
(pkgver: &str)
python-alpm/src/types/version.rs:14
Methodnew
(option: &str)
python-alpm/src/types/env.rs:51
Methodnew
(path: PathBuf)
python-alpm/src/types/path.rs:15
Methodnew
(license: &str)
python-alpm/src/types/license.rs:12
Methodnew
(key_id: &str)
python-alpm/src/types/openpgp.rs:57
Methodnew
(arch: RawArchitecture)
python-alpm/src/types/system.rs:202
Methodnew
(version: SchemaVersionOrStr)
python-alpm/src/srcinfo/schema.rs:15
Methodnew
(srcinfo: &str)
python-alpm/src/srcinfo/source_info/v1/mod.rs:18
Methodnew
(name: String, version: FullVersion)
python-alpm/src/srcinfo/source_info/v1/package_base.rs:39
Methodnew
(name: &str)
python-alpm/src/srcinfo/source_info/v1/package.rs:105
Methodnew
( architecture: Architecture, base: PackageBase, package_or_name: PackageOrName, )
python-alpm/src/srcinfo/source_info/v1/merged.rs:45
Methodnew
Creates a new [`PathValidationErrors`] for a directory.
alpm-mtree/src/mtree/path_validation_error.rs:30
Methodnew
Creates a new [`InputPath`]. # Errors Returns an error if - `base_dir` is not absolute, - `base_dir` is not a directory, - or `path` is not relative
alpm-common/src/package/input.rs:36
Methodnew
Creates a new [`TarballReader`] that reads from a [`CompressionDecoder`].
alpm-compress/src/tarball/reader.rs:42
Methodnew
Creates a new [`TarballBuilder`] that writes to the given [`File`] with the given [`CompressionSettings`]. # Errors Returns an error if [`Compressio
alpm-compress/src/tarball/builder.rs:36
Methodnew
Creates a new [`CompressionDecoder`]. Uses a [`File`] to stream from and initializes a specific backend based on the provided [`DecompressionSettings
alpm-compress/src/decompression/decoder.rs:47
Methodnew
Creates a new [`CompressionEncoder`]. Uses a [`File`] to stream to and initializes a specific backend based on the provided [`CompressionSettings`].
alpm-compress/src/compression/encoder.rs:108
Methodnew
Creates a new [`ZstdThreads`] from a [`u32`].
alpm-compress/src/compression/settings.rs:23
Methodnew
Creates a new [`FilesV1PathErrors`].
alpm-db/src/files/v1.rs:241
Methodnew
Creates a new [`Meta`] instance with all available groups, scopes, and levels. This function collects all enum variants for lint groups, scopes, and
alpm-lint/src/commands.rs:213
Methodnew
Create a new instance of [`ScopedName`]
alpm-lint/src/scope.rs:38
Methodnew
Creates a new [`LintStore`]. This adds all known lint rules to the store.
alpm-lint/src/lint_rules/store.rs:78
Methodnew
Creates a new [`ItemDeserializer`] from an [`Item`].
alpm-parsers/src/custom_ini/de.rs:188
Methodnew
Creates a new `Url` instance.
alpm-types/src/url.rs:50
Methodnew
Create a new `PackageDescription` from a given `String`.
alpm-types/src/pkg.rs:68
Methodnew
Create a new BuildTool
alpm-types/src/name.rs:52
Methodnew
Create a new [`BuildEnvironmentOption`] in a Result # Errors An error is returned if the string slice does not match a valid build environment optio
alpm-types/src/env.rs:212
Methodnew
Create a new `AbsolutePath`
alpm-types/src/path.rs:49
Methodnew
Creates a new license This function accepts both SPDX and non-standard identifiers and it is the same as as calling [`License::from_str`]
alpm-types/src/license.rs:78
Methodnew
Creates a new `OpenPGPKeyId` instance. See [`OpenPGPKeyId::from_str`] for more information on how the OpenPGP Key ID is validated.
alpm-types/src/openpgp.rs:148
Methodnew
Create a new `Name`
alpm-types/src/system.rs:158
Methodnew
Creates a new [`PackageFileName`]. # Errors Returns an error if the provided `version` does not have the `pkgrel` component. # Examples ``` use st
alpm-types/src/package/file_name.rs:73
Methodnew
Create a new Version
alpm-types/src/version/pkg_generic.rs:62
Methodnew
Creates a new [`MinimalVersion`]. # Examples ``` use alpm_types::{Epoch, MinimalVersion, PackageVersion}; # fn main() -> testresult::TestResult { /
alpm-types/src/version/pkg_minimal.rs:81
Methodnew
Create a new instance of a VersionSegments iterator.
alpm-types/src/version/comparison.rs:166
Methodnew
Creates a new [`FullVersion`]. # Examples ``` use alpm_types::{Epoch, FullVersion, PackageRelease, PackageVersion}; # fn main() -> testresult::Test
alpm-types/src/version/pkg_full.rs:84
Methodnew
Create a new `VersionRequirement`
alpm-types/src/version/requirement.rs:55
Methodnew
Create a new Epoch
alpm-types/src/version/base.rs:57
Methodnew
Create a new SchemaVersion
alpm-types/src/version/schema.rs:41
Methodnew
Creates a new [`SonameV1`]. Depending on input, this function returns different variants of [`SonameV1`]: - [`SonameV1::Basic`], if both `version_or
alpm-types/src/relation/soname.rs:283
Methodnew
Creates a new [`PackageRelation`] # Examples ``` use alpm_types::{PackageRelation, VersionComparison, VersionRequirement}; # fn main() -> Result<()
alpm-types/src/relation/base.rs:61
Methodnew_boxed
Creates a mock lint rules.
alpm-lint/src/lint_rules/store.rs:427
Methodnew_boxed
Create a new, boxed instance of [`UndefinedArchitecture`].
alpm-lint/src/lint_rules/source_info/undefined_architecture.rs:61
Methodnew_boxed
Create a new, boxed instance of [`NoArchitecture`].
alpm-lint/src/lint_rules/source_info/no_architecture.rs:50
Methodnew_boxed
Create a new, boxed instance of [`NotSPDX`].
alpm-lint/src/lint_rules/source_info/invalid_spdx_license.rs:58
Methodnew_boxed
Create a new, boxed instance of [`DuplicateArchitecture`]. This is used to register the lint on the [`LintStore`](crate::LintStore).
alpm-lint/src/lint_rules/source_info/duplicate_architecture.rs:50
Methodnew_boxed
Create a new, boxed instance of [`UnknownArchitecture`].
alpm-lint/src/lint_rules/source_info/unknown_architecture.rs:64
Methodnew_boxed
Create a new, boxed instance of [`OpenPGPKeyId`].
alpm-lint/src/lint_rules/source_info/openpgp_key_id.rs:70
Methodnew_boxed
Create a new, boxed instance of [`UnsafeChecksum`].
alpm-lint/src/lint_rules/source_info/unsafe_checksum.rs:68
Methodnew_boxed
Creates a new, boxed instance of [`MyNewLint`]. # Note Add a call to this method in [`LintStore::register`] to register the lint on the `LintStore`.
alpm-lint/examples/my_new_lint.rs:76
Methodnew_with_defaults
Create a new PackageBase from a [`Name`] and a [`FullVersion`]. Uses the name and version and initializes all remaining fields of [`PackageBase`] wit
alpm-srcinfo/src/source_info/v1/package_base.rs:232
Methodnew_with_defaults
Creates a new [`Package`] from a [`Name`]. Uses `name` and initializes all remaining fields of [`Package`] with default values. # Example ``` use s
alpm-srcinfo/src/source_info/v1/package.rs:275
Methodnew_with_restriction
Create a new BuildTool in a Result, which matches one Name in a list of restrictions ## Examples ``` use alpm_types::{BuildTool, Error, Name}; # fn
alpm-types/src/name.rs:68
Functionnewlines
One or multiple newlines. This also handles the case where there might be multiple lines with spaces.
alpm-repo-db/src/desc/parser.rs:190
Functionnewlines
One or multiple newlines. This also handles the case where there might be multiple lines with spaces.
alpm-db/src/desc/parser.rs:177
Functionnewlines
One or multiple newlines. This also handles the case where there might be multiple lines with spaces.
alpm-parsers/src/custom_ini/parser.rs:94
Methodnext
(&mut self)
alpm-srcinfo/src/source_info/v1/merged.rs:100
Methodnext
(&mut self)
alpm-compress/src/tarball/reader.rs:270
Functionno_architecture_fails
()
alpm-lint/tests/lint_rule_tests/source_info/no_architecture.rs:28
Functionno_architecture_passes
()
alpm-lint/tests/lint_rule_tests/source_info/no_architecture.rs:12
Functionno_duplicate_scoped_names
()
alpm-lint/src/lint_rules/store.rs:321
Methodno_extracts
(&self)
python-alpm/src/srcinfo/source_info/v1/merged.rs:180
Methodnon_deprecated_checksums
Returns a list of [`ChecksumAlgorithm`] variants that are not considered deprecated.
alpm-types/src/checksum.rs:174
Methodon
(&self)
python-alpm/src/types/env.rs:62
Methodon
Get whether the BuildEnvironmentOption is on
alpm-types/src/env.rs:230
Functionopenpgp_key_id_fails
()
alpm-lint/tests/lint_rule_tests/source_info/openpgp_key_id.rs:32
Functionopenpgp_key_id_passes
()
alpm-lint/tests/lint_rule_tests/source_info/openpgp_key_id.rs:14
Functionopt_depend_from_string
(#[case] input: &str, #[case] expected: OptionalDependency)
alpm-types/src/relation/base.rs:547
Functionopt_depend_invalid_string_parse_error
(#[case] input: &str)
alpm-types/src/relation/base.rs:606
Functionopt_depend_to_string
(#[case] input: &str, #[case] expected: &str)
alpm-types/src/relation/base.rs:587
Functionoption_bool_parser
Recognizes the `!` boolean operator in option names. This parser **does not** fully consume its input. It also expects the package name to be there,
alpm-types/src/env.rs:49
Functionoption_name_parser
Recognizes option names. This parser fully consumes its input. # Format The parser expects a sequence of ASCII alphanumeric characters, hyphens, do
alpm-types/src/env.rs:77
Methodoptional_dependencies
(&self)
python-alpm/src/srcinfo/source_info/v1/package.rs:265
Methodoptional_dependencies
(&self)
python-alpm/src/srcinfo/source_info/v1/merged.rs:145
Methodoptions
(&self)
python-alpm/src/srcinfo/source_info/v1/merged.rs:115
Functionoutput_dir_as_ref
()
alpm-package/src/config.rs:229
Functionoutput_dir_new_creates_dir
()
alpm-package/src/config.rs:194
Functionoutput_dir_new_fails
()
alpm-package/src/config.rs:206
Methodpackage_base
Recognizes a map of [`Keyword`]-[`Value`] pairs in a string slice. Backtracks as soon as the next section is hit. # Errors Returns an error if ther
alpm-pkgbuild/src/bridge/parser.rs:521
Functionpackage_base_invalid_spdx_license_fails
()
alpm-lint/tests/lint_rule_tests/source_info/invalid_spdx_license.rs:33
Methodpackage_base_line
Recognizes a [`Keyword`]-[`Value`] pair in a string slice. Backtracks as soon any other line prefix than `VAR GLOBAL` is encountered. # Errors Retu
alpm-pkgbuild/src/bridge/parser.rs:534
Functionpackage_creation_config_new_fails
()
alpm-package/tests/integration.rs:512
Functionpackage_description
(#[case] input: &str, #[case] result: &str)
alpm-types/src/pkg.rs:400
Functionpackage_entry_iterator
()
alpm-package/tests/integration.rs:973
Functionpackage_entry_iterator_without_scriptlet
()
alpm-package/tests/integration.rs:1028
Functionpackage_entry_iterators_debug
()
alpm-package/src/package.rs:1329
Functionpackage_file_name_architecture
()
alpm-types/src/package/file_name.rs:685
Functionpackage_file_name_compression
( #[case] compression: Option<CompressionAlgorithmFileExtension>, )
alpm-types/src/package/file_name.rs:704
Functionpackage_file_name_from_path_fails
(#[case] path: PathBuf)
alpm-types/tests/integration.rs:72
Functionpackage_file_name_from_path_succeeds
(#[case] path: &str)
alpm-types/src/package/file_name.rs:635
Functionpackage_file_name_name
()
alpm-types/src/package/file_name.rs:653
← previousnext →1,101–1,200 of 1,873, ranked by callers