pub struct CompilationDatabase { /* private fields */ }
Expand description
A compilation database of all information used to compile files in a project.
Implementations§
Source§impl CompilationDatabase
impl CompilationDatabase
Sourcepub fn from_directory<P: AsRef<Path>>(
path: P,
) -> Result<CompilationDatabase, ()>
pub fn from_directory<P: AsRef<Path>>( path: P, ) -> Result<CompilationDatabase, ()>
Creates a compilation database from the database found in the given directory.
Sourcepub fn get_all_compile_commands(&self) -> CompileCommands
pub fn get_all_compile_commands(&self) -> CompileCommands
Get all the compile commands from the database.
Sourcepub fn get_compile_commands<P: AsRef<Path>>(
&self,
path: P,
) -> Result<CompileCommands, ()>
pub fn get_compile_commands<P: AsRef<Path>>( &self, path: P, ) -> Result<CompileCommands, ()>
Find the compile commands for the given file.
Trait Implementations§
Source§impl Debug for CompilationDatabase
impl Debug for CompilationDatabase
Auto Trait Implementations§
impl Freeze for CompilationDatabase
impl RefUnwindSafe for CompilationDatabase
impl !Send for CompilationDatabase
impl !Sync for CompilationDatabase
impl Unpin for CompilationDatabase
impl UnwindSafe for CompilationDatabase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more