pub struct ProfileSelection { /* private fields */ }Expand description
A non-destructive service selection over one merged project.
Implementations§
Source§impl ProfileSelection
impl ProfileSelection
Sourcepub fn source_ids(&self) -> &[SourceId]
pub fn source_ids(&self) -> &[SourceId]
Returns source documents identifying the merged project used for selection.
Sourcepub fn active_profiles(&self) -> impl Iterator<Item = &str>
pub fn active_profiles(&self) -> impl Iterator<Item = &str>
Returns explicitly active profiles in deterministic order.
Sourcepub const fn activates_all_profiles(&self) -> bool
pub const fn activates_all_profiles(&self) -> bool
Reports whether the request activated all declared profiles.
Sourcepub fn services(&self) -> &[ServiceSelection]
pub fn services(&self) -> &[ServiceSelection]
Returns service decisions in merged service order.
Sourcepub fn service(&self, name: &str) -> Option<&ServiceSelection>
pub fn service(&self, name: &str) -> Option<&ServiceSelection>
Finds one service decision.
Sourcepub fn diagnostics(&self) -> &[Diagnostic]
pub fn diagnostics(&self) -> &[Diagnostic]
Returns selection diagnostics.
Trait Implementations§
Source§impl Clone for ProfileSelection
impl Clone for ProfileSelection
Source§fn clone(&self) -> ProfileSelection
fn clone(&self) -> ProfileSelection
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 moreSource§impl Debug for ProfileSelection
impl Debug for ProfileSelection
impl Eq for ProfileSelection
Source§impl PartialEq for ProfileSelection
impl PartialEq for ProfileSelection
impl StructuralPartialEq for ProfileSelection
Auto Trait Implementations§
impl Freeze for ProfileSelection
impl RefUnwindSafe for ProfileSelection
impl Send for ProfileSelection
impl Sync for ProfileSelection
impl Unpin for ProfileSelection
impl UnsafeUnpin for ProfileSelection
impl UnwindSafe for ProfileSelection
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