pub struct VariantProfile {
pub name: String,
pub defines: HashMap<String, String>,
pub base: Option<String>,
}Expand description
A named set of compile-time defines forming a “variant profile”.
Variant profiles can inherit from a base profile, inheriting its defines while optionally overriding individual values.
Fields§
§name: StringUnique name for this profile.
defines: HashMap<String, String>The defines in this profile.
base: Option<String>Optional base profile name (inherited defines are merged first).
Implementations§
Trait Implementations§
Source§impl Clone for VariantProfile
impl Clone for VariantProfile
Source§fn clone(&self) -> VariantProfile
fn clone(&self) -> VariantProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VariantProfile
impl RefUnwindSafe for VariantProfile
impl Send for VariantProfile
impl Sync for VariantProfile
impl Unpin for VariantProfile
impl UnsafeUnpin for VariantProfile
impl UnwindSafe for VariantProfile
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