Struct includedir::Files
source · pub struct Files { /* private fields */ }
Expand description
Runtime access to the included files
Implementations
sourceimpl Files
impl Files
pub fn set_passthrough(&self, enabled: bool)
pub fn is_available(&self, path: &str) -> bool
sourcepub fn file_names(&'static self) -> FileNames ⓘ
pub fn file_names(&'static self) -> FileNames ⓘ
Returns an iterator over all available file names. Does not decompress any compressed data.
pub fn get(&self, path: &str) -> Result<Cow<'static, [u8]>>
pub fn get_raw(&self, path: &str) -> Result<(Compression, Cow<'static, [u8]>)>
pub fn read(&self, path: &str) -> Result<Box<dyn Read>>
Auto Trait Implementations
impl RefUnwindSafe for Files
impl Send for Files
impl Sync for Files
impl Unpin for Files
impl UnwindSafe for Files
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