pub struct ProviderDeclarations {
pub scratch_roots: Vec<String>,
pub providers: Vec<ProviderDeclaration>,
}Expand description
What the distribution declares about its providers, joined with the templates it ships.
Fields§
§scratch_roots: Vec<String>The tool’s own scratch roots, unexpanded (see the file’s header for the grammar).
providers: Vec<ProviderDeclaration>Every provider, sorted by id.
Implementations§
Source§impl ProviderDeclarations
impl ProviderDeclarations
Sourcepub fn scratch_roots(&self, primary: &Path) -> Vec<(Option<String>, PathBuf)>
pub fn scratch_roots(&self, primary: &Path) -> Vec<(Option<String>, PathBuf)>
Every scratch root — the tool’s own and every provider’s — expanded against
primary (the repository’s primary checkout) and the environment, in declaration
order, with the provider that declared each. A root whose expansion needs a variable
the environment does not hold is skipped, not an error.
Trait Implementations§
Source§impl Clone for ProviderDeclarations
impl Clone for ProviderDeclarations
Source§fn clone(&self) -> ProviderDeclarations
fn clone(&self) -> ProviderDeclarations
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 ProviderDeclarations
impl Debug for ProviderDeclarations
Source§impl Default for ProviderDeclarations
impl Default for ProviderDeclarations
Source§fn default() -> ProviderDeclarations
fn default() -> ProviderDeclarations
Returns the “default value” for a type. Read more
impl Eq for ProviderDeclarations
Source§impl PartialEq for ProviderDeclarations
impl PartialEq for ProviderDeclarations
Source§fn eq(&self, other: &ProviderDeclarations) -> bool
fn eq(&self, other: &ProviderDeclarations) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProviderDeclarations
Auto Trait Implementations§
impl Freeze for ProviderDeclarations
impl RefUnwindSafe for ProviderDeclarations
impl Send for ProviderDeclarations
impl Sync for ProviderDeclarations
impl Unpin for ProviderDeclarations
impl UnsafeUnpin for ProviderDeclarations
impl UnwindSafe for ProviderDeclarations
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.