Enum cmake_parser::command::project::Export
source · pub enum Export<'t> {
Targets(TargetsExport<'t>),
Export(ExportExport<'t>),
Package(PackageExport<'t>),
}
Expand description
Export targets or packages for outside projects to use them directly from the current project’s build tree, without installation.
Reference: https://cmake.org/cmake/help/v3.26/command/export.html
Variants§
Trait Implementations§
source§impl<'t> CMakeParse<'t> for Export<'t>
impl<'t> CMakeParse<'t> for Export<'t>
fn matches_type(_: &[u8], keyword: &[u8], tokens: &[Token<'t>]) -> bool
fn parse<'tv>( tokens: &'tv [Token<'t>] ) -> Result<(Self, &'tv [Token<'t>]), CommandParseError>
fn need_push_keyword(keyword: &Token<'t>) -> bool
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 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 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 Export<'t>
impl<'t> CMakePositional<'t> for Export<'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> Ord for Export<'t>
impl<'t> Ord for Export<'t>
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 Export<'t>
impl<'t> PartialEq for Export<'t>
source§impl<'t> PartialOrd for Export<'t>
impl<'t> PartialOrd for Export<'t>
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 Export<'t>
impl<'t> ToCommandScope for Export<'t>
fn to_command_scope(&self) -> CommandScope
impl<'t> Eq for Export<'t>
impl<'t> StructuralPartialEq for Export<'t>
Auto Trait Implementations§
impl<'t> Freeze for Export<'t>
impl<'t> RefUnwindSafe for Export<'t>
impl<'t> Send for Export<'t>
impl<'t> Sync for Export<'t>
impl<'t> Unpin for Export<'t>
impl<'t> UnwindSafe for Export<'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