pub struct CommandInvocation {
pub name: String,
pub arguments: Vec<Argument>,
pub trailing_comment: Option<Comment>,
pub span: (usize, usize),
}Expand description
A CMake command invocation.
Fields§
§name: StringThe command name, e.g. “target_link_libraries”. Case as written in source.
arguments: Vec<Argument>The argument list, in source order.
trailing_comment: Option<Comment>A comment that appears after the closing paren on the same line.
span: (usize, usize)Byte span (start, end) in the original source.
Trait Implementations§
Source§impl Clone for CommandInvocation
impl Clone for CommandInvocation
Source§fn clone(&self) -> CommandInvocation
fn clone(&self) -> CommandInvocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandInvocation
impl Debug for CommandInvocation
Source§impl PartialEq for CommandInvocation
impl PartialEq for CommandInvocation
impl Eq for CommandInvocation
impl StructuralPartialEq for CommandInvocation
Auto Trait Implementations§
impl Freeze for CommandInvocation
impl RefUnwindSafe for CommandInvocation
impl Send for CommandInvocation
impl Sync for CommandInvocation
impl Unpin for CommandInvocation
impl UnsafeUnpin for CommandInvocation
impl UnwindSafe for CommandInvocation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.