pub struct WebCOwned {
    pub webc: WebC<'static>,
    /* private fields */
}
Expand description

Owned version of the WebC file that carries its data along the parsed WebC<'static>

Fields

webc: WebC<'static>

Implementations

Same as WebC::parse, but keeps the resulting data in memory, instead of referencing it

Methods from Deref<Target = WebC<'static>>

Determines the available volumes for a given package

Returns the directory entries or an error if the directory does not exist

source

pub fn get_file_entry(
    &self,
    package: &str,
    path: &str
) -> Option<(String, OwnedFsEntryFile)>

Looks for the first volume containing “entry”, scoped to the given package

Returns a reference to the manifest

Returns the current package name with

Returns an atom by name for a given package

Returns a reference to the filesystem volume of the package

Returns a file for a given package - if you want to use a non-default volume, prefix the file_path with volume://, for example, metadata://README.md

Returns a list of volumes for this package

Returns a list of bundled “package@version” strings contained in this package

Returns the atoms in the root package

Returns a list of all atoms with bytes

List the atoms for a given package

List the available commands for the root package

Serialize the .webc file into bytes

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.