Struct embuild::cmake::Codemodel[][src]

pub struct Codemodel {
    pub version: Version,
    pub paths: Paths,
    pub configurations: Vec<Configuration>,
    // some fields omitted
}
Expand description

The description of the build system structure as modeled by CMake.

Fields

version: Version

The version of this object kind.

paths: Paths

Some paths used by cmake.

configurations: Vec<Configuration>

All available build configurations.

On single-configuration generators there is one entry for the value of the CMAKE_BUILD_TYPE variable. For multi-configuration generators there is an entry for each configuration listed in the CMAKE_CONFIGURATION_TYPES variable.

Implementations

Turn this into configurations.

Turn this into configurations[0].

This functions panics if there are no configurations.

The path to the directory containing the file represented by this Codemodel instance.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.