pub struct RenderContext {
pub builtins: HashMap<String, String>,
pub vars: Vec<(String, String)>,
pub env: HashMap<String, String>,
}Expand description
Context used to resolve variables during rendering.
Fields§
§builtins: HashMap<String, String>dotling.* built-in values.
vars: Vec<(String, String)>var.* values: local store values override config defaults.
Stored as a plain list; lookup scans from front to back so
callers can prepend local vars to override config defaults.
env: HashMap<String, String>env.* values — snapshot of selected env vars.
Implementations§
Auto Trait Implementations§
impl Freeze for RenderContext
impl RefUnwindSafe for RenderContext
impl Send for RenderContext
impl Sync for RenderContext
impl Unpin for RenderContext
impl UnsafeUnpin for RenderContext
impl UnwindSafe for RenderContext
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