Struct include_dir::File[][src]

pub struct File<'a> { /* fields omitted */ }

A file with its contents stored in a &'static [u8].


impl<'a> File<'a>

The file's path, relative to the directory included with include_dir!().

The file's raw contents.

The file's contents interpreted as a string.

Trait Implementations

impl<'a> Copy for File<'a>

impl<'a> Clone for File<'a>

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for File<'a>

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Debug for File<'a>

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for File<'a>

impl<'a> Sync for File<'a>