pub struct VariantKey {
pub field: String,
pub value: u32,
pub parts: Vec<KeyPart>,
}Expand description
What picks one of several stages of one kind in a binding: the mesh-side field a consumer reads, named by the
dialect’s component and field that holds it (<component>.<field>), and the value that picks this stage. A
consumer draws a mesh with the stage whose key names a field it has and whose value that field equals; a mesh whose
value matches no stage is refused by name, not drawn with a first or default stage.
Fields§
§field: StringThe component and field the mesh carries the key in, as component.field (<dialect>.<component>.<field>), or
the name the source gives its keys where no mesh field holds them (a name in the source’s own terms).
value: u32The value of the stage’s key, compared for equality with the mesh’s field.
parts: Vec<KeyPart>What the key stands for, in the source’s terms. A description only: it never identifies a variant (a binding’s
check, and a consumer picking a stage, go by field and value) and may be empty.
Trait Implementations§
Source§impl Clone for VariantKey
impl Clone for VariantKey
Source§impl Debug for VariantKey
impl Debug for VariantKey
impl Eq for VariantKey
Source§impl Hash for VariantKey
impl Hash for VariantKey
Source§impl Ord for VariantKey
impl Ord for VariantKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for VariantKey
impl PartialEq for VariantKey
Source§impl PartialOrd for VariantKey
impl PartialOrd for VariantKey
Source§impl Serialize for VariantKey
impl Serialize for VariantKey
impl StructuralPartialEq for VariantKey
Auto Trait Implementations§
impl Forget for VariantKey
impl Freeze for VariantKey
impl RefUnwindSafe for VariantKey
impl Send for VariantKey
impl Sync for VariantKey
impl Unpin for VariantKey
impl UnsafeUnpin for VariantKey
impl UnwindSafe for VariantKey
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
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.