pub struct BatteryPackSpec {
pub name: String,
pub version: String,
pub dev_dependencies: BTreeMap<String, DepSpec>,
pub default_crates: Vec<String>,
pub sets: BTreeMap<String, SetSpec>,
}Expand description
Parsed battery pack specification.
Fields§
§name: String§version: String§dev_dependencies: BTreeMap<String, DepSpec>§default_crates: Vec<String>§sets: BTreeMap<String, SetSpec>Implementations§
Source§impl BatteryPackSpec
impl BatteryPackSpec
Sourcepub fn resolve_crates(
&self,
active_sets: &[String],
) -> BTreeMap<String, DepSpec>
pub fn resolve_crates( &self, active_sets: &[String], ) -> BTreeMap<String, DepSpec>
Resolve a list of active set names into a merged list of (crate, version, features).
Starts with crates from default_crates (looked up in dev_dependencies),
then layers on additional sets. Feature merging is always additive.
Sourcepub fn resolve_all(&self) -> BTreeMap<String, DepSpec>
pub fn resolve_all(&self) -> BTreeMap<String, DepSpec>
Resolve all dev-dependencies (for –all flag).
Trait Implementations§
Source§impl Clone for BatteryPackSpec
impl Clone for BatteryPackSpec
Source§fn clone(&self) -> BatteryPackSpec
fn clone(&self) -> BatteryPackSpec
Returns a duplicate of the value. Read more
1.0.0 · 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 BatteryPackSpec
impl RefUnwindSafe for BatteryPackSpec
impl Send for BatteryPackSpec
impl Sync for BatteryPackSpec
impl Unpin for BatteryPackSpec
impl UnsafeUnpin for BatteryPackSpec
impl UnwindSafe for BatteryPackSpec
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