[][src]Trait resource::ReadFromFile

pub trait ReadFromFile {
    fn read_from_file(path: &Path) -> Self;
}

Used internally.

Only used by the dynamic versions of Resource to make it generic over both strings and bytes. Represents something that can be read straight from a file.

Required methods

fn read_from_file(path: &Path) -> Self

Loading content...

Implementations on Foreign Types

impl ReadFromFile for String[src]

impl ReadFromFile for Vec<u8>[src]

Loading content...

Implementors

Loading content...