Struct assembly_pack::pki::core::PackIndexFile
source · pub struct PackIndexFile {
pub archives: Vec<PackFileRef>,
pub files: BTreeMap<CRC, FileRef>,
}
Available on crate feature
pki
only.Expand description
The entire data in a PKI file
Fields§
§archives: Vec<PackFileRef>
The list of PK archive paths
files: BTreeMap<CRC, FileRef>
The map from CRC to file metadata
Implementations§
source§impl PackIndexFile
impl PackIndexFile
sourcepub fn add_pack(
&mut self,
path: String,
compressed: bool,
) -> PackIndexHandle<'_>
pub fn add_pack( &mut self, path: String, compressed: bool, ) -> PackIndexHandle<'_>
Add a new pack to this PKI
Trait Implementations§
source§impl Clone for PackIndexFile
impl Clone for PackIndexFile
source§fn clone(&self) -> PackIndexFile
fn clone(&self) -> PackIndexFile
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PackIndexFile
impl Debug for PackIndexFile
source§impl Default for PackIndexFile
impl Default for PackIndexFile
source§fn default() -> PackIndexFile
fn default() -> PackIndexFile
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PackIndexFile
impl<'de> Deserialize<'de> for PackIndexFile
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for PackIndexFile
impl Serialize for PackIndexFile
source§impl TryFrom<&Path> for PackIndexFile
impl TryFrom<&Path> for PackIndexFile
source§impl TryFrom<&str> for PackIndexFile
impl TryFrom<&str> for PackIndexFile
Auto Trait Implementations§
impl Freeze for PackIndexFile
impl RefUnwindSafe for PackIndexFile
impl Send for PackIndexFile
impl Sync for PackIndexFile
impl Unpin for PackIndexFile
impl UnwindSafe for PackIndexFile
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more