pub struct Files { /* private fields */ }Expand description
What the engine has fetched: each version’s component by
(version, name) — /app/<version>/components/<name>.json and .rhai.
Implementations§
Source§impl Files
impl Files
Sourcepub fn put_version(
&mut self,
version: &str,
name: &str,
tree: &str,
handlers: &str,
)
pub fn put_version( &mut self, version: &str, name: &str, tree: &str, handlers: &str, )
Keeps version version’s component name: its tree and handlers.
Sourcepub fn put_sheet(&mut self, version: &str, name: &str, css: &str)
pub fn put_sheet(&mut self, version: &str, name: &str, css: &str)
FRAME-30: keeps version version’s component name’s sheet’s text.
Sourcepub fn sheet(&self, version: &str, name: &str) -> Option<Rc<str>>
pub fn sheet(&self, version: &str, name: &str) -> Option<Rc<str>>
FRAME-30: version version’s component name’s sheet, when fetched.
Sourcepub fn version(&self, version: &str, name: &str) -> Option<(&str, &str)>
pub fn version(&self, version: &str, name: &str) -> Option<(&str, &str)>
Version version’s component name: (tree, handlers).
STUDIO-9: version from’s component name kept under to as well —
its tree, handlers and sheet shared, not copied. False when from
has none.
Sourcepub fn kept_bytes(&self) -> usize
pub fn kept_bytes(&self) -> usize
STUDIO-9: the bytes kept, each text counted once however many versions share it.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Files
impl !Sync for Files
impl Forget for Files
impl Freeze for Files
impl Move for Files
impl RefUnwindSafe for Files
impl Unpin for Files
impl UnsafeUnpin for Files
impl UnwindSafe for Files
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.