pub struct Archive(_);
Expand description
Sciter compressed archive.
An archive is produced by packfolder
(from SDK) that creates a blob with compressed resources.
It allows to use the same resource pack uniformly across different platforms.
For example, app resource files (HTML/CSS/scripts) can be stored in an assets
folder
that can be packed into a single archive by calling packfolder.exe assets target/assets.rc -binary
.
And later can be accessed via the Archive API:
ⓘ
let archived = include_bytes!("target/assets.rc");
let assets = sciter::host::Archive::open(archived).expect("Unable to load archive.");
// access `assets/index.htm`
let html_data = assets.get("index.htm").unwrap();
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Archive
impl !Send for Archive
impl !Sync for Archive
impl Unpin for Archive
impl UnwindSafe for Archive
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more