pub struct CompileCommandsFile {
pub output_path: PathBuf,
pub sys_dir: PathBuf,
}Fields§
§output_path: PathBuf§sys_dir: PathBufImplementations§
Source§impl CompileCommandsFile
impl CompileCommandsFile
pub fn commands(&self) -> Vec<CompileCommand>
Sourcepub fn write(&self) -> Result<(), WrapperSourcesError>
pub fn write(&self) -> Result<(), WrapperSourcesError>
§Errors
Returns WrapperSourcesError when the destination file cannot be created or
the compilation database cannot be written to it.
Auto Trait Implementations§
impl Freeze for CompileCommandsFile
impl RefUnwindSafe for CompileCommandsFile
impl Send for CompileCommandsFile
impl Sync for CompileCommandsFile
impl Unpin for CompileCommandsFile
impl UnsafeUnpin for CompileCommandsFile
impl UnwindSafe for CompileCommandsFile
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