#[non_exhaustive]pub enum Files {
Dir(&'static Dir<'static>),
Table(&'static [(&'static str, &'static [u8])]),
Owned(&'static OwnedFiles),
}Expand description
Where a layer’s files are.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dir(&'static Dir<'static>)
A directory embedded by include_dir!.
Table(&'static [(&'static str, &'static [u8])])
A table of (path, contents) sorted by path (relative to the
layer’s root, /-separated): what a build script writes where
include_dir does not build (without std).
Owned(&'static OwnedFiles)
Files handed in at run time (Layer::owned): a player’s mod, a
folder read from disk.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Files
impl RefUnwindSafe for Files
impl Send for Files
impl Sync 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