pub enum Statement {
Command(CommandInvocation),
TemplatePlaceholder(String),
Comment(Comment),
BlankLines(usize),
}Expand description
A top-level statement in a CMake file.
Variants§
Command(CommandInvocation)
A command invocation, e.g. target_link_libraries(foo PUBLIC bar).
TemplatePlaceholder(String)
A top-level configure-file placeholder line such as @PACKAGE_INIT@.
These occur in .cmake.in templates and must be preserved verbatim.
Comment(Comment)
A standalone comment (on its own line).
BlankLines(usize)
One or more consecutive blank lines between statements. The value is the number of blank lines (>= 1).
Trait Implementations§
impl Eq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
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.