Struct clang::source::File[][src]

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

A source file.

Methods

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

Returns the absolute path to this file.

Returns the last modification time for this file.

Returns a unique identifier for this file.

Returns the module containing this file, if any.

Important traits for Vec<u8>

Returns the source ranges in this file that were skipped by the preprocessor.

This will always return an empty Vec if the translation unit that contains this file was not constructed with a detailed preprocessing record.

Returns whether this file is guarded against multiple inclusions.

Returns the source location at the supplied line and column in this file.

Panics

  • line or column is 0

Returns the source location at the supplied character offset in this file.

Important traits for Vec<u8>

Returns the inclusion directives in this file.

Important traits for Vec<u8>

Returns the references to the supplied entity in this file.

Visits the inclusion directives in this file and returns whether visitation was ended by the callback returning false.

Visits the references to the supplied entity in this file and returns whether visitation was ended by the callback returning false.

Trait Implementations

impl<'tu> Copy for File<'tu>
[src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'tu> Debug for File<'tu>
[src]

Formats the value using the given formatter. Read more

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

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

This method tests for !=.

impl<'tu> Eq for File<'tu>
[src]

impl<'tu> Hash for File<'tu>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<'tu> !Send for File<'tu>

impl<'tu> !Sync for File<'tu>