Struct CompileCommand
pub struct CompileCommand { /* private fields */ }
The command that compiles one object file: an entry of a JSON compilation database.
cc passes it as the extra of a BuildMessageKind::CompileCommand
message.
Implementations
impl CompileCommand
fn directory(&self) -> &PathThe working directory of the compiler, an absolute path. Relative paths in the arguments are relative to it.
fn file(&self) -> &PathThe source file, an absolute path.
fn arguments(&self) -> impl ExactSizeIterator<Item = &OsStr> + DoubleEndedIteratorThe program cc runs, followed by its arguments, without any escaping.
fn output(&self) -> &PathThe object file, an absolute path.
Trait Implementations
impl Clone for CompileCommand
fn clone(&self) -> Self
impl Debug for CompileCommand
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for CompileCommand
impl PartialEq for CompileCommand
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for CompileCommand
Auto Trait Implementations
impl Freeze for CompileCommand
impl RefUnwindSafe for CompileCommand
impl Send for CompileCommand
impl Sync for CompileCommand
impl Unpin for CompileCommand
impl UnsafeUnpin for CompileCommand
impl UnwindSafe for CompileCommand
Blanket Implementations
impl<T> Any for CompileCommand
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CompileCommand
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CompileCommand
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for CompileCommand
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for CompileCommand
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for CompileCommand
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for CompileCommand
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CompileCommand
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for CompileCommand
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>