Struct clang::Clang [] [src]

pub struct Clang;

An empty type which prevents the use of this library from multiple threads simultaneously.

Methods

impl Clang
[src]

fn new() -> Result<Clang()>

Constructs a new Clang.

Only one instance of Clang is allowed at a time.

Failures

  • an instance of Clang already exists

fn get_version() -> String

Returns the version string for the version of libclang in use.

Trait Implementations

impl Drop for Clang
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more

impl Debug for Clang
[src]

fn fmt(&self, formatter: &mut Formatter) -> Result

Formats the value using the given formatter.