Struct rofl::BytesLoader [] [src]

pub struct BytesLoader<'fl> { /* fields omitted */ }

Wrapper around FileLoader that loads the entire content of the files.

The content is given out as simple vector of bytes, i.e. Vec<u8>.

Methods

impl<'fl> BytesLoader<'fl>
[src]

Wrap a FileLoader within the BytesLoader.

Trait Implementations

impl<'fl> Debug for BytesLoader<'fl>
[src]

Formats the value using the given formatter.

impl<'fl> From<FileLoader<'fl>> for BytesLoader<'fl>
[src]

Performs the conversion.

impl<'fl> Loader for BytesLoader<'fl>
[src]

Type of resources that this loader can load.

Error that may occur while loading the resource.

Load a file resource as its byte content.