pub struct VariantProfileRegistry { /* private fields */ }Expand description
A registry of named VariantProfiles with dependency resolution.
Implementations§
Source§impl VariantProfileRegistry
impl VariantProfileRegistry
Sourcepub fn register(&mut self, profile: VariantProfile)
pub fn register(&mut self, profile: VariantProfile)
Register a profile. Overwrites any existing profile with the same name.
Sourcepub fn resolve(&self, name: &str) -> Option<HashMap<String, String>>
pub fn resolve(&self, name: &str) -> Option<HashMap<String, String>>
Resolve a profile by name, merging inherited defines.
Returns None if the profile (or any base) is not found.
Sourcepub fn profile_names(&self) -> Vec<&str>
pub fn profile_names(&self) -> Vec<&str>
Return a sorted list of all registered profile names.
Trait Implementations§
Source§impl Debug for VariantProfileRegistry
impl Debug for VariantProfileRegistry
Source§impl Default for VariantProfileRegistry
impl Default for VariantProfileRegistry
Source§fn default() -> VariantProfileRegistry
fn default() -> VariantProfileRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VariantProfileRegistry
impl RefUnwindSafe for VariantProfileRegistry
impl Send for VariantProfileRegistry
impl Sync for VariantProfileRegistry
impl Unpin for VariantProfileRegistry
impl UnsafeUnpin for VariantProfileRegistry
impl UnwindSafe for VariantProfileRegistry
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> 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