#[non_exhaustive]pub struct DirectoryReference {
pub source: PathBuf,
pub build: PathBuf,
pub parent_index: Option<usize>,
pub child_indexes: Vec<usize>,
pub project_index: usize,
pub target_indexes: Vec<usize>,
pub minimum_cmake_version: Option<MinimumCmakeVersion>,
pub has_install_rule: bool,
pub json_file: PathBuf,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.source: PathBuf
Path to the source directory, represented with forward slashes. If the directory is inside the top-level source directory then the path is specified relative to that directory (with . for the top-level source directory itself). Otherwise, the path is absolute.
build: PathBuf
Path to the build directory, represented with forward slashes. If the directory is inside the top-level build directory then the path is specified relative to that directory (with . for the top-level build directory itself). Otherwise, the path is absolute.
parent_index: Option<usize>
Optional member that is present when the directory is not top-level. The value is an unsigned integer 0-based index of another entry in the main directories array that corresponds to the parent directory that added this directory as a subdirectory.
child_indexes: Vec<usize>
Optional member that is present when the directory has subdirectories. Each entry corresponding to child directory created by the add_subdirectory() or subdirs() command. Each entry is an unsigned integer 0-based index of another entry in the main directories array.
project_index: usize
An unsigned integer 0-based index into the main projects array indicating the build system project to which the directory belongs.
target_indexes: Vec<usize>
Optional member that is present when the directory itself has targets, excluding those belonging to subdirectories. Each entry corresponding to the targets. Each entry is an unsigned integer 0-based index into the main targets array.
minimum_cmake_version: Option<MinimumCmakeVersion>
Optional member present when a minimum required version of CMake is known for the directory.
This is the <min>
version given to the most local call to the cmake_minimum_required(VERSION) command in the directory itself or
one of its ancestors.
has_install_rule: bool
True when the directory or one of its subdirectories contains any install() rules, i.e. whether a make install or equivalent rule is available.
json_file: PathBuf
Path relative to the codemodel file to another JSON file containing a “codemodel” version 2 “directory” object.
Trait Implementations§
Source§impl Clone for DirectoryReference
impl Clone for DirectoryReference
Source§fn clone(&self) -> DirectoryReference
fn clone(&self) -> DirectoryReference
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more