[][src]Struct includedir::Files

pub struct Files { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.