pub struct CMakeVar {
pub name: String,
pub value: String,
}
Expand description
A CMake variable with a name and a value.
Fields§
§name: String
§value: String
Implementations§
Source§impl CMakeVar
impl CMakeVar
Sourcepub fn new<S1: Into<String>, S2: Into<String>>(name: S1, value: S2) -> Self
pub fn new<S1: Into<String>, S2: Into<String>>(name: S1, value: S2) -> Self
Creates a new variable.
Sourcepub fn new_list<I, S, L>(name: S, values: L) -> Result<Self>
pub fn new_list<I, S, L>(name: S, values: L) -> Result<Self>
Creates a new variable containing a list of values.
Sourcepub fn new_path_list<I, S, L>(name: S, paths: L) -> Result<CMakeVar>
pub fn new_path_list<I, S, L>(name: S, paths: L) -> Result<CMakeVar>
Creates a new variable containing a list of paths.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CMakeVar
impl<'de> Deserialize<'de> for CMakeVar
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CMakeVar
impl RefUnwindSafe for CMakeVar
impl Send for CMakeVar
impl Sync for CMakeVar
impl Unpin for CMakeVar
impl UnwindSafe for CMakeVar
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more