pub struct FeatureSet(pub BTreeSet<String>);Expand description
Sorted, deduplicated feature set.
BTreeSet ensures deterministic iteration order, which is critical for
producing identical hashes across platforms and invocations.
Tuple Fields§
§0: BTreeSet<String>Implementations§
Source§impl FeatureSet
impl FeatureSet
Sourcepub fn short_hash(&self) -> String
pub fn short_hash(&self) -> String
Compute a short hash of the feature set for use in OCI tags. Returns first 8 hex chars of BLAKE3 hash over sorted features.
Trait Implementations§
Source§impl Clone for FeatureSet
impl Clone for FeatureSet
Source§impl Debug for FeatureSet
impl Debug for FeatureSet
Source§impl Default for FeatureSet
impl Default for FeatureSet
Source§impl<'de> Deserialize<'de> for FeatureSet
impl<'de> Deserialize<'de> for FeatureSet
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 FeatureSet
Source§impl FromIterator<String> for FeatureSet
impl FromIterator<String> for FeatureSet
Source§impl Hash for FeatureSet
impl Hash for FeatureSet
Source§impl PartialEq for FeatureSet
impl PartialEq for FeatureSet
Source§impl Serialize for FeatureSet
impl Serialize for FeatureSet
impl StructuralPartialEq for FeatureSet
Auto Trait Implementations§
impl Freeze for FeatureSet
impl RefUnwindSafe for FeatureSet
impl Send for FeatureSet
impl Sync for FeatureSet
impl Unpin for FeatureSet
impl UnsafeUnpin for FeatureSet
impl UnwindSafe for FeatureSet
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.