pub struct VariableDescriptor {
pub id: &'static str,
pub label: &'static str,
pub symbol: Option<&'static str>,
pub quantity: Option<&'static str>,
pub ramp: RampHint,
}Expand description
Descriptor of one result variable in an engine’s per-class catalog (spec §6.1).
id follows the block-id stability rule — application preferences and
saved views may reference it.
Fields§
§id: &'static strStable variable identifier, opaque to this layer.
label: &'static strHuman-facing name.
symbol: Option<&'static str>Compact engine-authored notation (≤3 chars) for space-starved
surfaces — ideally the domain’s standard symbol (spec §6.1) — or
None for the application’s own fallback.
quantity: Option<&'static str>Key of the quantity the values carry (spec §5), or None for
dimensionless variables.
ramp: RampHintHow values map to a colour scale.
Trait Implementations§
Source§impl Clone for VariableDescriptor
impl Clone for VariableDescriptor
Source§fn clone(&self) -> VariableDescriptor
fn clone(&self) -> VariableDescriptor
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 VariableDescriptor
impl Debug for VariableDescriptor
Source§impl PartialEq for VariableDescriptor
impl PartialEq for VariableDescriptor
Source§impl Serialize for VariableDescriptor
impl Serialize for VariableDescriptor
impl StructuralPartialEq for VariableDescriptor
Auto Trait Implementations§
impl Freeze for VariableDescriptor
impl RefUnwindSafe for VariableDescriptor
impl Send for VariableDescriptor
impl Sync for VariableDescriptor
impl Unpin for VariableDescriptor
impl UnsafeUnpin for VariableDescriptor
impl UnwindSafe for VariableDescriptor
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