pub struct CompileCommand<'cmds> { /* private fields */ }Expand description
A compile comand from CompilationDatabase
Implementations§
Source§impl<'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§
Source§impl<'cmds> Clone for CompileCommand<'cmds>
impl<'cmds> Clone for CompileCommand<'cmds>
Source§fn clone(&self) -> CompileCommand<'cmds>
fn clone(&self) -> CompileCommand<'cmds>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'cmds> Copy for CompileCommand<'cmds>
Auto Trait Implementations§
impl<'cmds> !Send for CompileCommand<'cmds>
impl<'cmds> !Sync for CompileCommand<'cmds>
impl<'cmds> Freeze for CompileCommand<'cmds>
impl<'cmds> RefUnwindSafe for CompileCommand<'cmds>
impl<'cmds> Unpin for CompileCommand<'cmds>
impl<'cmds> UnsafeUnpin for CompileCommand<'cmds>
impl<'cmds> UnwindSafe for CompileCommand<'cmds>
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