Struct include_dir::File [−][src]
pub struct File<'a> { /* fields omitted */ }
Methods
impl<'a> File<'a>
[src]
impl<'a> File<'a>
pub fn path(&self) -> &'a Path
[src]
pub fn path(&self) -> &'a Path
pub fn contents(&self) -> &'a [u8]
[src]
pub fn contents(&self) -> &'a [u8]
pub fn contents_utf8(&self) -> Option<&'a str>
[src]
pub fn contents_utf8(&self) -> Option<&'a str>
Trait Implementations
impl<'a> Copy for File<'a>
[src]
impl<'a> Copy for File<'a>
impl<'a> Clone for File<'a>
[src]
impl<'a> Clone for File<'a>
fn clone(&self) -> File<'a>
[src]
fn clone(&self) -> File<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> PartialEq for File<'a>
[src]
impl<'a> PartialEq for File<'a>
fn eq(&self, other: &File<'a>) -> bool
[src]
fn eq(&self, other: &File<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &File<'a>) -> bool
[src]
fn ne(&self, other: &File<'a>) -> bool
This method tests for !=
.
impl<'a> Debug for File<'a>
[src]
impl<'a> Debug for File<'a>