pub struct FindPackageFull<'t> {Show 26 fields
pub package_name: Token<'t>,
pub version: Option<Token<'t>>,
pub exact: bool,
pub quiet: bool,
pub components: Option<PackageComponents<'t>>,
pub optional_components: Option<Vec<Token<'t>>>,
pub config_mode: Option<ConfigMode>,
pub global: bool,
pub no_policy_scope: bool,
pub bypass_provider: bool,
pub names: Option<Vec<Token<'t>>>,
pub configs: Option<Vec<Token<'t>>>,
pub hints: Option<Vec<Token<'t>>>,
pub paths: Option<Vec<Token<'t>>>,
pub registry_view: Option<WindowsRegistryView>,
pub path_suffixes: Option<Vec<Token<'t>>>,
pub no_default_path: bool,
pub no_package_root_path: bool,
pub no_cmake_path: bool,
pub no_cmake_environment_path: bool,
pub no_system_environment_path: bool,
pub no_cmake_package_registry: bool,
pub no_cmake_builds_path: bool,
pub no_cmake_system_path: bool,
pub no_cmake_install_prefix: bool,
pub find_root: Option<FindRoot>,
}
Fields§
§package_name: Token<'t>
§version: Option<Token<'t>>
§exact: bool
§quiet: bool
§components: Option<PackageComponents<'t>>
§optional_components: Option<Vec<Token<'t>>>
§config_mode: Option<ConfigMode>
§global: bool
§no_policy_scope: bool
§bypass_provider: bool
§names: Option<Vec<Token<'t>>>
§configs: Option<Vec<Token<'t>>>
§hints: Option<Vec<Token<'t>>>
§paths: Option<Vec<Token<'t>>>
§registry_view: Option<WindowsRegistryView>
§path_suffixes: Option<Vec<Token<'t>>>
§no_default_path: bool
§no_package_root_path: bool
§no_cmake_path: bool
§no_cmake_environment_path: bool
§no_system_environment_path: bool
§no_cmake_package_registry: bool
§no_cmake_builds_path: bool
§no_cmake_system_path: bool
§no_cmake_install_prefix: bool
§find_root: Option<FindRoot>
Trait Implementations§
Source§impl<'t> CMakeParse<'t> for FindPackageFull<'t>
impl<'t> CMakeParse<'t> for FindPackageFull<'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 FindPackageFull<'t>
impl<'t> CMakePositional<'t> for FindPackageFull<'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>
fn in_range<'tv>( default_name: &'static [u8], to: &'static [u8], allow_empty: bool, tokens: &'tv [Token<'t>], has_keyword: bool, ) -> Result<(Self, &'tv [Token<'t>]), CommandParseError>
Source§impl<'t> Clone for FindPackageFull<'t>
impl<'t> Clone for FindPackageFull<'t>
Source§fn clone(&self) -> FindPackageFull<'t>
fn clone(&self) -> FindPackageFull<'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 FindPackageFull<'t>
impl<'t> Debug for FindPackageFull<'t>
Source§impl<'t> Hash for FindPackageFull<'t>
impl<'t> Hash for FindPackageFull<'t>
Source§impl<'t> Ord for FindPackageFull<'t>
impl<'t> Ord for FindPackageFull<'t>
Source§fn cmp(&self, other: &FindPackageFull<'t>) -> Ordering
fn cmp(&self, other: &FindPackageFull<'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 FindPackageFull<'t>
impl<'t> PartialEq for FindPackageFull<'t>
Source§impl<'t> PartialOrd for FindPackageFull<'t>
impl<'t> PartialOrd for FindPackageFull<'t>
impl<'t> Eq for FindPackageFull<'t>
impl<'t> StructuralPartialEq for FindPackageFull<'t>
Auto Trait Implementations§
impl<'t> Freeze for FindPackageFull<'t>
impl<'t> RefUnwindSafe for FindPackageFull<'t>
impl<'t> Send for FindPackageFull<'t>
impl<'t> Sync for FindPackageFull<'t>
impl<'t> Unpin for FindPackageFull<'t>
impl<'t> UnwindSafe for FindPackageFull<'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