pub enum LabelKey {
Value(String),
}
Expand description
A metadata label used to constrain values at a given coordinate dimension.
LabelKey
represents attribute values associated with indices —
for example, GPU model names like "A100"
or capabilities like
“AVX-512”.
Labels are not dimension names (like "zone"
or "rack"
); they
are values assigned to elements at a given dimension, and are
used by Selection::Label
to restrict which values are eligible
during selection or routing.
For example, a selection like sel!(["A100"]*)
matches only
indices at the current dimension whose associated label value is
"A100"
.
Ord
is derived to allow deterministic sorting and set membership,
based on lexicographic ordering of label strings.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LabelKey
impl<'de> Deserialize<'de> for LabelKey
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
Source§impl Ord for LabelKey
impl Ord for LabelKey
Source§impl PartialOrd for LabelKey
impl PartialOrd for LabelKey
impl Eq for LabelKey
impl StructuralPartialEq for LabelKey
Auto Trait Implementations§
impl Freeze for LabelKey
impl RefUnwindSafe for LabelKey
impl Send for LabelKey
impl Sync for LabelKey
impl Unpin for LabelKey
impl UnwindSafe for LabelKey
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more