pub struct GoCompactTargetResolves {
pub base: BTreeMap<String, GoTargetEdges>,
pub targets: BTreeMap<String, GoTargetOverrides>,
}Expand description
Compact serialized representation of per-target resolves — base
holds edges identical across every tuple (stored once); targets
holds only the per-tuple differences. Decode contract:
packages(tuple) = base // targets[tuple].overrides.
Lifted verbatim in shape/algorithm from gen-cargo’s
CompactTargetResolves. (Sharing ONE generic implementation across
cargo + gomod is the M-multitarget gen-types lift — see the M1
build doc §7.)
Fields§
§base: BTreeMap<String, GoTargetEdges>§targets: BTreeMap<String, GoTargetOverrides>Implementations§
Source§impl GoCompactTargetResolves
impl GoCompactTargetResolves
Sourcepub fn from_full(full: IndexMap<String, GoTargetResolve>) -> Self
pub fn from_full(full: IndexMap<String, GoTargetResolve>) -> Self
Split a full per-tuple resolve map into base + overrides. A node
is universal+identical iff it appears in every tuple with a
byte-identical edge set. Lossless: for every tuple T,
base // overrides[T] reconstructs the original map.
Trait Implementations§
Source§impl Clone for GoCompactTargetResolves
impl Clone for GoCompactTargetResolves
Source§fn clone(&self) -> GoCompactTargetResolves
fn clone(&self) -> GoCompactTargetResolves
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 GoCompactTargetResolves
impl Debug for GoCompactTargetResolves
Source§impl Default for GoCompactTargetResolves
impl Default for GoCompactTargetResolves
Source§fn default() -> GoCompactTargetResolves
fn default() -> GoCompactTargetResolves
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoCompactTargetResolves
impl<'de> Deserialize<'de> for GoCompactTargetResolves
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GoCompactTargetResolves
Source§impl PartialEq for GoCompactTargetResolves
impl PartialEq for GoCompactTargetResolves
Source§impl Serialize for GoCompactTargetResolves
impl Serialize for GoCompactTargetResolves
impl StructuralPartialEq for GoCompactTargetResolves
Auto Trait Implementations§
impl Freeze for GoCompactTargetResolves
impl RefUnwindSafe for GoCompactTargetResolves
impl Send for GoCompactTargetResolves
impl Sync for GoCompactTargetResolves
impl Unpin for GoCompactTargetResolves
impl UnsafeUnpin for GoCompactTargetResolves
impl UnwindSafe for GoCompactTargetResolves
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.