pub struct IncludeFsInner { /* private fields */ }Implementations§
Source§impl IncludeFsInner
impl IncludeFsInner
Sourcepub fn new(archive_bytes: &'static [u8]) -> Result<Self, FsError>
pub fn new(archive_bytes: &'static [u8]) -> Result<Self, FsError>
Initialize a new IncludeFs from the given bytes.
This function is only meant to be called by the include_fs! macro.
pub fn exists(&self, path: &str) -> bool
pub fn get(&self, path: &str) -> Result<&[u8], FsError>
pub fn list_paths(&self) -> Vec<&str>
Auto Trait Implementations§
impl Freeze for IncludeFsInner
impl RefUnwindSafe for IncludeFsInner
impl Send for IncludeFsInner
impl Sync for IncludeFsInner
impl Unpin for IncludeFsInner
impl UnsafeUnpin for IncludeFsInner
impl UnwindSafe for IncludeFsInner
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