Struct cpp_to_rust_common::cpp_lib_builder::CMakeVar
[−]
[src]
pub struct CMakeVar { pub name: String, pub value: String, }
A CMake variable with a name and a value.
Fields
name: String
value: String
Methods
impl CMakeVar
[src]
fn new<S1: Into<String>, S2: Into<String>>(name: S1, value: S2) -> CMakeVar
[src]
Creates a new variable.
fn new_list<I, S, L>(name: S, values: L) -> Result<CMakeVar> where
S: Into<String>,
I: AsRef<str>,
L: IntoIterator<Item = I>,
[src]
S: Into<String>,
I: AsRef<str>,
L: IntoIterator<Item = I>,
Creates a new variable containing a list of values.
fn new_path_list<I, S, L>(name: S, paths: L) -> Result<CMakeVar> where
S: Into<String>,
I: AsRef<Path>,
L: IntoIterator<Item = I>,
[src]
S: Into<String>,
I: AsRef<Path>,
L: IntoIterator<Item = I>,
Creates a new variable containing a list of paths.