[−][src]Struct includedir::Files
Runtime access to the included files
Implementations
impl Files
[src]
pub fn set_passthrough(&self, enabled: bool)
[src]
pub fn is_available(&self, path: &str) -> bool
[src]
pub fn file_names(&'static self) -> FileNames
[src]
Returns an iterator over all available file names. Does not decompress any compressed data.
pub fn get(&self, path: &str) -> Result<Cow<'static, [u8]>>
[src]
pub fn get_raw(&self, path: &str) -> Result<(Compression, Cow<'static, [u8]>)>
[src]
pub fn read(&self, path: &str) -> Result<Box<dyn Read>>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,