pub struct DataContext {
pub fields: BTreeMap<String, String>,
pub arrays: BTreeMap<String, Vec<String>>,
}Expand description
Named data fields and ordered array columns available at scene-compile time.
fields holds scalar bindings keyed by dot-separated path (e.g.
"revenue.total"). arrays holds ordered sequences of raw element strings
keyed by name (e.g. "sales" → ["12", "18", "15"]), populated from JSON
array values and CSV column columns.
Both maps use BTreeMap for deterministic iteration order on the render
path. No HashMap, no randomness, no time.
Fields§
§fields: BTreeMap<String, String>Scalar field map. Keyed by dotted path, value is the raw string.
arrays: BTreeMap<String, Vec<String>>Array column map. Keyed by name, value is the ordered raw element strings.
Implementations§
Trait Implementations§
Source§impl Clone for DataContext
impl Clone for DataContext
Source§fn clone(&self) -> DataContext
fn clone(&self) -> DataContext
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 DataContext
impl Debug for DataContext
Source§impl Default for DataContext
impl Default for DataContext
Source§fn default() -> DataContext
fn default() -> DataContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DataContext
impl RefUnwindSafe for DataContext
impl Send for DataContext
impl Sync for DataContext
impl Unpin for DataContext
impl UnsafeUnpin for DataContext
impl UnwindSafe for DataContext
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