Debian Codegraph @

src/records.rs

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 //! Allows access to complete package description records directly from the
2 //! file.
3 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::cellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/::{Refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/Ref#, RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#};
4
5 use cxxrust-analyzer cargo cxx 1.0.199 crate/::UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#;
6
7 // TODO: Probably just make this a real enum
8 // we an add a variant RecordField::String("Package".to_string())
9 // or something like that.
10
11 /// A module containing [`&str`] constants for known record fields
12 ///
13 /// Pass through to the [`crate::Version::get_record`] method
14 /// or you can use a custom [`&str`] like the ones listed below.
15 ///
16 /// Other Known Record Keys:
17 ///
18 /// `Conffiles` `Status` `Python-Version` `Auto-Built-Package`
19 /// `Enhances` `Cnf-Extra-Commands` `Gstreamer-Elements`
20 /// `Gstreamer-Encoders` `Lua-Versions` `Original-Maintainer` `Protected`
21 /// `Gstreamer-Uri-Sources` `Vendor` `Build-Ids` `Efi-Vendor` `SHA512`
22 /// `Build-Essential` `Important` `X-Cargo-Built-Using`
23 /// `Cnf-Visible-Pkgname` `Gstreamer-Decoders` `SHA1` `Gstreamer-Uri-Sinks`
24 /// `Gstreamer-Version` `Ghc-Package` `Static-Built-Using`
25 /// `Postgresql-Catversion` `Python-Egg-Name` `Built-Using` `License`
26 /// `Cnf-Ignore-Commands` `Go-Import-Path` `Ruby-Versions`
27 #[allow(non_upper_case_globals, non_snake_case)]
28 pub mod RecordFieldrust-analyzer cargo rust-apt 0.8.0 records/RecordField/ {
29 /// Name of the package `apt`
30 pub const Packagerust-analyzer cargo rust-apt 0.8.0 records/RecordField/Package.: &str = "Package";
31
32 /// The name of the source package and the version if it exists
33 /// `zsh (5.9-1)`
34 // TODO: We need to write a parser to be able to handle this properly
35 // The apt source that does this is in debrecords.cc
36 pub const Sourcerust-analyzer cargo rust-apt 0.8.0 records/RecordField/Source.: &str = "Source";
37
38 /// Version of the package `2.5.2`
39 pub const Versionrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Version.: &str = "Version";
40
41 /// The unpacked size in KiB? `4352`
42 pub const InstalledSizerust-analyzer cargo rust-apt 0.8.0 records/RecordField/InstalledSize.: &str = "Installed-Size";
43
44 /// The homepage of the software
45 /// `https://gitlab.com/volian/rust-apt`
46 pub const Homepagerust-analyzer cargo rust-apt 0.8.0 records/RecordField/Homepage.: &str = "Homepage";
47
48 /// If the package is essential `yes`
49 pub const Essentialrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Essential.: &str = "Essential";
50
51 /// The Maintainer of the package
52 /// `APT Development Team <[email protected]>`
53 pub const Maintainerrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Maintainer.: &str = "Maintainer";
54
55 /// The Original Maintainer of the package.
56 /// Most common to see on Ubuntu packages repackaged from Debian
57 /// `APT Development Team <[email protected]>`
58 pub const OriginalMaintainerrust-analyzer cargo rust-apt 0.8.0 records/RecordField/OriginalMaintainer.: &str = "Original-Maintainer";
59
60 /// The Architecture of the package `amd64`
61 pub const Architecturerust-analyzer cargo rust-apt 0.8.0 records/RecordField/Architecture.: &str = "Architecture";
62
63 /// Packages that this one replaces
64 /// `apt-transport-https (<< 1.5~alpha4~), apt-utils (<< 1.3~exp2~)`
65 pub const Replacesrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Replaces.: &str = "Replaces";
66
67 /// Packages that this one provides
68 /// `apt-transport-https (= 2.5.2)`
69 pub const Providesrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Provides.: &str = "Provides";
70
71 /// Packages that must be installed and configured before this one
72 /// `libc6 (>= 2.34), libtinfo6 (>= 6)`
73 pub const PreDependsrust-analyzer cargo rust-apt 0.8.0 records/RecordField/PreDepends.: &str = "Pre-Depends";
74
75 /// Packages this one depends on
76 /// `adduser, gpgv | gpgv2 | gpgv1, libapt-pkg6.0 (>= 2.5.2)`
77 pub const Dependsrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Depends.: &str = "Depends";
78
79 /// Packages that are recommended to be installed with this one
80 /// `ca-certificates`
81 pub const Recommendsrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Recommends.: &str = "Recommends";
82
83 /// Packages that are suggested to be installed with this one
84 /// `apt-doc, aptitude | synaptic | wajig, dpkg-dev (>= 1.17.2)`
85 pub const Suggestsrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Suggests.: &str = "Suggests";
86
87 /// Packages that are broken by installing this.
88 /// `apt-transport-https (<< 1.5~alpha4~), apt-utils (<< 1.3~exp2~)`
89 pub const Breaksrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Breaks.: &str = "Breaks";
90
91 /// Packages that conflict with this one
92 /// `bash-completion (<< 20060301-0)`
93 pub const Conflictsrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Conflicts.: &str = "Conflicts";
94
95 /// The raw description of the package
96 /// `commandline package manager`
97 pub const Descriptionrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Description.: &str = "Description";
98
99 /// The MD5 sum of the description
100 /// `9fb97a88cb7383934ef963352b53b4a7`
101 pub const DescriptionMD5rust-analyzer cargo rust-apt 0.8.0 records/RecordField/DescriptionMD5.: &str = "Description-md5";
102
103 /// Any tags associated with this package
104 /// `admin::package-management, devel::lang:ruby, hardware::storage`
105 pub const Tagrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Tag.: &str = "Tag";
106
107 /// The type of multi arch for the package.
108 /// Either `allowed`, `foreign`, or `same`
109 pub const MultiArchrust-analyzer cargo rust-apt 0.8.0 records/RecordField/MultiArch.: &str = "Multi-Arch";
110
111 /// The section of the package `admin`
112 pub const Sectionrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Section.: &str = "Section";
113
114 /// The Priority of the package `required`
115 pub const Priorityrust-analyzer cargo rust-apt 0.8.0 records/RecordField/Priority.: &str = "Priority";
116
117 /// The raw filename of the package
118 /// `pool/main/a/apt/apt_2.5.2_amd64.deb`
119 pub const Filenamerust-analyzer cargo rust-apt 0.8.0 records/RecordField/Filename.: &str = "Filename";
120
121 /// The compressed size of the .deb in bytes `1500520`
122 pub const Sizerust-analyzer cargo rust-apt 0.8.0 records/RecordField/Size.: &str = "Size";
123
124 /// The MD5 sum of the package `8797c5716952fba7779bd072e53acee5`
125 pub const MD5sumrust-analyzer cargo rust-apt 0.8.0 records/RecordField/MD5sum.: &str = "MD5sum";
126
127 /// The SHA256 sum of the package
128 /// `a6dd99a52ec937faa20e1617da36b8b27a2ed8bc9300bf7eb8404041ede52200`
129 pub const SHA256rust-analyzer cargo rust-apt 0.8.0 records/RecordField/SHA256.: &str = "SHA256";
130 }
131
132 pub struct PackageRecordsrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords# {
133 pub(craterust-analyzer cargo rust-apt 0.8.0 crate/) ptrrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#ptr.: UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<rawrust-analyzer cargo rust-apt 0.8.0 records/raw/::PkgRecordsrust-analyzer cargo rust-apt 0.8.0 records/raw/PkgRecords#>,
134 parserrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#parser.: RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#<UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<rawrust-analyzer cargo rust-apt 0.8.0 records/raw/::Parserrust-analyzer cargo rust-apt 0.8.0 records/raw/Parser#>>,
•135 indexrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#index.: RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#<usize>,
136 }
137
138 impl PackageRecordsrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords# {
139 pub fn newrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]new().(ptr: UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<rawrust-analyzer cargo rust-apt 0.8.0 records/raw/::PkgRecordsrust-analyzer cargo rust-apt 0.8.0 records/raw/PkgRecords#>) -> PackageRecordsrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords# {
140 PackageRecordsrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords# {
141 ptrrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#ptr.,
142 parserrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#parser.: RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#::nullrust-analyzer cargo cxx 1.0.199 unique_ptr/impl#[`UniquePtr<T>`]null().()),
143 indexrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#index.: RefCellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/RefCell#::newrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]new().(0),
144 }
145 }
146
•147 fn replace_indexrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]replace_index().(&self, index: usize) -> bool {
148 if self.indexrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#index..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().().eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialEq<Self>`]eq().(&index) {
149 return false;
150 }
151 self.indexrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#index..replacerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]replace().(index);
152 true
153 }
154
155 fn parserrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]parser().(&self) -> Refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/Ref#<UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<rawrust-analyzer cargo rust-apt 0.8.0 records/raw/::Parserrust-analyzer cargo rust-apt 0.8.0 records/raw/Parser#>> {
156 if self.parserrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#parser..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().().is_nullrust-analyzer cargo cxx 1.0.199 unique_ptr/impl#[`UniquePtr<T>`]is_null().() {
157 panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("You must call ver_lookup or desc_lookup first!")
158 }
159 self.parserrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#parser..borrowrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]borrow().()
160 }
161
162 pub fn ver_lookuprust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]ver_lookup().(&self, file: &rawrust-analyzer cargo rust-apt 0.8.0 records/raw/::VerFileIteratorrust-analyzer cargo rust-apt 0.8.0 records/raw/VerFileIterator#) -> &PackageRecordsrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords# {
163 if self.replace_indexrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]replace_index().(file.indexrust-analyzer cargo rust-apt 0.8.0 iterators/files/raw/impl#[VerFileIterator]index().()) {
164 unsafe { self.parserrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#parser..replacerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]replace().(self.ptrrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#ptr..ver_lookuprust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[PkgRecords]ver_lookup().(file)) };
165 }
166 self
167 }
168
169 pub fn desc_lookuprust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]desc_lookup().(&self, file: &rawrust-analyzer cargo rust-apt 0.8.0 records/raw/::DescIteratorrust-analyzer cargo rust-apt 0.8.0 records/raw/DescIterator#) -> &PackageRecordsrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords# {
170 if self.replace_indexrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]replace_index().(file.indexrust-analyzer cargo rust-apt 0.8.0 iterators/files/raw/impl#[DescIterator]index().()) {
171 unsafe { self.parserrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#parser..replacerust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`RefCell<T>`]replace().(self.ptrrust-analyzer cargo rust-apt 0.8.0 records/PackageRecords#ptr..desc_lookuprust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[PkgRecords]desc_lookup().(file)) };
172 }
173 self
174 }
175
176 pub fn short_descrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]short_desc().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#> { self.parserrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]parser().().short_descrust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[Parser]short_desc().().okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]ok().() }
177
178 pub fn long_descrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]long_desc().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#> { self.parserrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]parser().().long_descrust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[Parser]long_desc().().okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]ok().() }
179
180 pub fn filenamerust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]filename().(&self) -> Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String# { self.parserrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]parser().().filenamerust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[Parser]filename().() }
181
182 pub fn get_fieldrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]get_field().(&self, field: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#> { self.parserrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]parser().().get_fieldrust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[Parser]get_field().(field).okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]ok().() }
183
184 pub fn hash_findrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]hash_find().(&self, hash_type: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#> {
185 self.parserrust-analyzer cargo rust-apt 0.8.0 records/impl#[PackageRecords]parser().().hash_findrust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[Parser]hash_find().(hash_type).okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]ok().()
186 }
187 }
188
189 #[cxxrust-analyzer cargo cxx 1.0.199 crate/::bridgerust-analyzer cargo cxxbridge-macro 1.0.199 bridge:]
190 pub(craterust-analyzer cargo rust-apt 0.8.0 crate/) mod rawrust-analyzer cargo rust-apt 0.8.0 records/raw/ {
191 impl UniquePtr<IndexFilerust-analyzer cargo rust-apt 0.8.0 records/raw/IndexFile#> {}
192 unsafe extern "C++" {
193 includerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include!!("rust-apt/apt-pkg-c/records.h");
194 type PkgRecordsrust-analyzer cargo rust-apt 0.8.0 records/raw/PkgRecords#;
195 type Parserrust-analyzer cargo rust-apt 0.8.0 records/raw/Parser#;
196 type IndexFilerust-analyzer cargo rust-apt 0.8.0 records/raw/IndexFile#;
197 type VerFileIteratorrust-analyzer cargo rust-apt 0.8.0 records/raw/VerFileIterator# = craterust-analyzer cargo rust-apt 0.8.0 crate/::iteratorsrust-analyzer cargo rust-apt 0.8.0 iterators/::VerFileIteratorrust-analyzer cargo rust-apt 0.8.0 iterators/files/raw/VerFileIterator#;
198 type DescIteratorrust-analyzer cargo rust-apt 0.8.0 records/raw/DescIterator# = craterust-analyzer cargo rust-apt 0.8.0 crate/::iteratorsrust-analyzer cargo rust-apt 0.8.0 iterators/::DescIteratorrust-analyzer cargo rust-apt 0.8.0 iterators/files/raw/DescIterator#;
199
200 /// Move the records into the correct spot for the Version File.
201 ///
202 /// # Safety
203 ///
204 /// The returned Parser can not out live the records struct.
205 /// If you hold a Parser and lookup another file, the data that parser
206 /// returns will change.
207 ///
208 /// The returned UniquePtr cannot outlive the cache.
209 unsafe fn ver_lookuprust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[PkgRecords]ver_lookup().(self: &PkgRecordsrust-analyzer cargo rust-apt 0.8.0 records/raw/PkgRecords#, ver_file: &VerFileIteratorrust-analyzer cargo rust-apt 0.8.0 records/raw/VerFileIterator#) -> UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<Parserrust-analyzer cargo rust-apt 0.8.0 records/raw/Parser#>;
210
211 /// Move the records into the correct spot for the Description File.
212 ///
213 /// # Safety
214 ///
215 /// The returned Parser can not out live the records struct.
216 /// If you hold a Parser and lookup another file, the data that parser
217 /// returns will change.
218 ///
219 /// The returned UniquePtr cannot outlive the cache.
220 unsafe fn desc_lookuprust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[PkgRecords]desc_lookup().(self: &PkgRecordsrust-analyzer cargo rust-apt 0.8.0 records/raw/PkgRecords#, desc_file: &DescIteratorrust-analyzer cargo rust-apt 0.8.0 records/raw/DescIterator#) -> UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<Parserrust-analyzer cargo rust-apt 0.8.0 records/raw/Parser#>;
221
222 pub fn filenamerust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[Parser]filename().(self: &Parserrust-analyzer cargo rust-apt 0.8.0 records/raw/Parser#) -> Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#;
223 pub fn long_descrust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[Parser]long_desc().(self: &Parserrust-analyzer cargo rust-apt 0.8.0 records/raw/Parser#) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>;
224 pub fn short_descrust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[Parser]short_desc().(self: &Parserrust-analyzer cargo rust-apt 0.8.0 records/raw/Parser#) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>;
225
226 pub fn get_fieldrust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[Parser]get_field().(self: &Parserrust-analyzer cargo rust-apt 0.8.0 records/raw/Parser#, field: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>;
227 pub fn hash_findrust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[Parser]hash_find().(self: &Parserrust-analyzer cargo rust-apt 0.8.0 records/raw/Parser#, hash_type: Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#>;
228
229 pub fn archive_urirust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[IndexFile]archive_uri().(self: &IndexFilerust-analyzer cargo rust-apt 0.8.0 records/raw/IndexFile#, filename: &str) -> Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#;
230
231 /// Return true if the IndexFile is trusted.
232 pub fn is_trustedrust-analyzer cargo rust-apt 0.8.0 records/raw/impl#[IndexFile]is_trusted().(self: &IndexFilerust-analyzer cargo rust-apt 0.8.0 records/raw/IndexFile#) -> bool;
233 }
234 }