Struct wasmer_pack::Files
source · pub struct Files { /* private fields */ }
Expand description
A set of files loaded into memory.
Implementations§
source§impl Files
impl Files
pub fn new() -> Self
pub fn insert(&mut self, path: impl Into<PathBuf>, file: SourceFile)
pub fn insert_child_directory(&mut self, dir: impl AsRef<Path>, files: Files)
pub fn iter(&self) -> impl Iterator<Item = (&Path, &SourceFile)> + '_
pub fn save_to_disk(&self, output_dir: impl AsRef<Path>) -> Result<(), Error>
pub fn get_mut(&mut self, path: impl AsRef<Path>) -> Option<&mut SourceFile>
Trait Implementations§
source§impl Extend<(PathBuf, SourceFile)> for Files
impl Extend<(PathBuf, SourceFile)> for Files
source§fn extend<T: IntoIterator<Item = (PathBuf, SourceFile)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (PathBuf, SourceFile)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl IntoIterator for Files
impl IntoIterator for Files
source§impl PartialEq<Files> for Files
impl PartialEq<Files> for Files
impl Eq for Files
impl StructuralEq for Files
impl StructuralPartialEq for Files
Auto Trait Implementations§
impl RefUnwindSafe for Files
impl Send for Files
impl Sync for Files
impl Unpin for Files
impl UnwindSafe for Files
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.