pub struct Layer { /* private fields */ }Expand description
An active profile, read from its source at one revision, and rendered for the target.
Implementations§
Source§impl Layer
impl Layer
Sourcepub const fn source_name(&self) -> Option<&SourceName>
pub const fn source_name(&self) -> Option<&SourceName>
The name the target gives its source; None for a source a profile requires by git.
Sourcepub const fn name(&self) -> &ProfileName
pub const fn name(&self) -> &ProfileName
Its profile’s name, which names the layer.
Sourcepub fn qualified(&self) -> String
pub fn qualified(&self) -> String
source/profile, as the target names it; the profile’s name for a source a profile
requires by git.
Sourcepub const fn digest(&self) -> Digest
pub const fn digest(&self) -> Digest
Digest of manifest, rendered payload and features together.
Sourcepub fn declared(&self) -> &[FeatureName]
pub fn declared(&self) -> &[FeatureName]
Every feature it declares, in order.
Sourcepub const fn features(&self) -> &BTreeMap<FeatureName, BTreeSet<Enabler>>
pub const fn features(&self) -> &BTreeMap<FeatureName, BTreeSet<Enabler>>
Every feature that is on, with who turned it on.
Sourcepub fn required_by(&self) -> &[ProfileName]
pub fn required_by(&self) -> &[ProfileName]
The profiles that require it.
Sourcepub const fn configured(&self) -> bool
pub const fn configured(&self) -> bool
Whether the target configures it as a layer, rather than a profile requiring it.
Sourcepub const fn files(&self) -> &BTreeMap<RelPath, LayerFile>
pub const fn files(&self) -> &BTreeMap<RelPath, LayerFile>
Its files, by rendered path: those that apply, and those whose gates say they do not.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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