Struct clang::CompileCommand
source · [−]pub struct CompileCommand<'cmds> { /* private fields */ }
Expand description
A compile comand from CompilationDatabase
Implementations
sourceimpl<'cmds> CompileCommand<'cmds>
impl<'cmds> CompileCommand<'cmds>
sourcepub fn get_directory(&self) -> PathBuf
pub fn get_directory(&self) -> PathBuf
Get the working directory where the command was executed.
sourcepub fn get_filename(&self) -> PathBuf
pub fn get_filename(&self) -> PathBuf
Get the filename associated with the command.
sourcepub fn get_arguments(&self) -> Vec<String>
pub fn get_arguments(&self) -> Vec<String>
Get all arguments passed to the command.
Trait Implementations
sourceimpl<'cmds> Clone for CompileCommand<'cmds>
impl<'cmds> Clone for CompileCommand<'cmds>
sourcefn clone(&self) -> CompileCommand<'cmds>
fn clone(&self) -> CompileCommand<'cmds>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'cmds> Debug for CompileCommand<'cmds>
impl<'cmds> Debug for CompileCommand<'cmds>
impl<'cmds> Copy for CompileCommand<'cmds>
Auto Trait Implementations
impl<'cmds> RefUnwindSafe for CompileCommand<'cmds>
impl<'cmds> !Send for CompileCommand<'cmds>
impl<'cmds> !Sync for CompileCommand<'cmds>
impl<'cmds> Unpin for CompileCommand<'cmds>
impl<'cmds> UnwindSafe for CompileCommand<'cmds>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more