Struct cmake_parser::command::ctest::CTestRunScript
source · pub struct CTestRunScript<'t> {
pub new_process: bool,
pub scripts: Option<Vec<Token<'t>>>,
pub return_value: Option<Token<'t>>,
}
Expand description
Runs a script or scripts much like if it was run from ctest -S.
Reference: https://cmake.org/cmake/help/v3.26/command/ctest_run_script.html
Fields§
§new_process: bool
§scripts: Option<Vec<Token<'t>>>
§return_value: Option<Token<'t>>
Trait Implementations§
source§impl<'t> CMakeParse<'t> for CTestRunScript<'t>
impl<'t> CMakeParse<'t> for CTestRunScript<'t>
fn parse<'tv>( tokens: &'tv [Token<'t>] ) -> Result<(Self, &'tv [Token<'t>]), CommandParseError>
fn complete(tokens: &[Token<'t>]) -> Result<Self, CommandParseError>
fn default_value() -> Option<Self>
fn matches( &self, field_keyword: &[u8], keyword: &[u8], tokens: &[Token<'t>] ) -> bool
fn matches_type( field_keyword: &[u8], keyword: &[u8], tokens: &[Token<'t>] ) -> bool
fn need_update( field_keyword: &[u8], keyword: &Token<'t>, buffer: &[Token<'t>] ) -> bool
fn start<'tv>( &mut self, field_keyword: &[u8], keyword: &Token<'t>, tokens: &'tv [Token<'t>], buffer: &mut Vec<Token<'t>> ) -> Result<(bool, &'tv [Token<'t>]), CommandParseError>
fn rest<'tv>(tokens: &'tv [Token<'t>]) -> &'tv [Token<'t>]
fn need_push_keyword(keyword: &Token<'t>) -> bool
fn update_mode(keyword: &Token<'t>) -> bool
fn update<'tv>( &mut self, tokens: &'tv [Token<'t>] ) -> Result<(), CommandParseError>
fn end<'tv>(self, tokens: &'tv [Token<'t>]) -> Result<Self, CommandParseError>
fn push_keyword( &mut self, buffer: &mut Vec<Token<'t>>, keyword: &Token<'t> ) -> bool
fn reset_mode() -> bool
source§impl<'t> CMakePositional<'t> for CTestRunScript<'t>
impl<'t> CMakePositional<'t> for CTestRunScript<'t>
fn positional<'tv>( default_name: &'static [u8], tokens: &'tv [Token<'t>], has_keyword: bool ) -> Result<(Self, &'tv [Token<'t>]), CommandParseError>
fn positional_complete<'tv>( default_name: &'static [u8], tokens: &'tv [Token<'t>], has_keyword: bool ) -> Result<(Self, &'tv [Token<'t>]), CommandParseError>
source§impl<'t> Clone for CTestRunScript<'t>
impl<'t> Clone for CTestRunScript<'t>
source§fn clone(&self) -> CTestRunScript<'t>
fn clone(&self) -> CTestRunScript<'t>
Returns a copy 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<'t> Debug for CTestRunScript<'t>
impl<'t> Debug for CTestRunScript<'t>
source§impl<'t> Hash for CTestRunScript<'t>
impl<'t> Hash for CTestRunScript<'t>
source§impl<'t> Ord for CTestRunScript<'t>
impl<'t> Ord for CTestRunScript<'t>
source§fn cmp(&self, other: &CTestRunScript<'t>) -> Ordering
fn cmp(&self, other: &CTestRunScript<'t>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'t> PartialEq for CTestRunScript<'t>
impl<'t> PartialEq for CTestRunScript<'t>
source§fn eq(&self, other: &CTestRunScript<'t>) -> bool
fn eq(&self, other: &CTestRunScript<'t>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'t> PartialOrd for CTestRunScript<'t>
impl<'t> PartialOrd for CTestRunScript<'t>
source§fn partial_cmp(&self, other: &CTestRunScript<'t>) -> Option<Ordering>
fn partial_cmp(&self, other: &CTestRunScript<'t>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'t> ToCommandScope for CTestRunScript<'t>
impl<'t> ToCommandScope for CTestRunScript<'t>
fn to_command_scope(&self) -> CommandScope
impl<'t> Eq for CTestRunScript<'t>
impl<'t> StructuralPartialEq for CTestRunScript<'t>
Auto Trait Implementations§
impl<'t> Freeze for CTestRunScript<'t>
impl<'t> RefUnwindSafe for CTestRunScript<'t>
impl<'t> Send for CTestRunScript<'t>
impl<'t> Sync for CTestRunScript<'t>
impl<'t> Unpin for CTestRunScript<'t>
impl<'t> UnwindSafe for CTestRunScript<'t>
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