pub struct DimensionSpec {
pub value_type: DimensionType,
}Expand description
A dimension a scope introduces: the label NAME whose values arrive from data, declared once at the tier that owns it.
The name is a structural declaration; only the value varies per cell.
Component::attach enforces the same rule on the runtime tree — a label
name is owned by exactly one tier and inherited downward — so declaring
the name here is what lets that be checked against the program before a
cycle runs, rather than surfacing as an attach-time panic.
Fields§
§value_type: DimensionTypeValue type. str today — label values are strings, and a
dimension whose values came from a float would key cells on
formatting rather than on identity.
Trait Implementations§
Source§impl Clone for DimensionSpec
impl Clone for DimensionSpec
Source§impl Debug for DimensionSpec
impl Debug for DimensionSpec
Source§impl<'de> Deserialize<'de> for DimensionSpec
impl<'de> Deserialize<'de> for DimensionSpec
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 DimensionSpec
Source§impl PartialEq for DimensionSpec
impl PartialEq for DimensionSpec
Source§impl Serialize for DimensionSpec
impl Serialize for DimensionSpec
impl StructuralPartialEq for DimensionSpec
Auto Trait Implementations§
impl Freeze for DimensionSpec
impl RefUnwindSafe for DimensionSpec
impl Send for DimensionSpec
impl Sync for DimensionSpec
impl Unpin for DimensionSpec
impl UnsafeUnpin for DimensionSpec
impl UnwindSafe for DimensionSpec
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
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,
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.