Struct include_dir::File[][src]

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

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

Methods

impl<'a> File<'a>
[src]

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>
[src]

impl<'a> Clone for File<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for File<'a>
[src]

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>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

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