pub struct RenderState<'a> { /* private fields */ }Expand description
Mutable state for one render operation.
RuleSet::render_rule creates a fresh state for each call. The state tracks
per-render bindings, the rule call stack used for cycle detection, and the
random number generator used by choice nodes.
Implementations§
Source§impl<'a> RenderState<'a>
impl<'a> RenderState<'a>
Sourcepub fn with_context(ruleset: &'a RuleSet, context: RenderContext) -> Self
pub fn with_context(ruleset: &'a RuleSet, context: RenderContext) -> Self
Creates a render state with initial variable bindings.
Auto Trait Implementations§
impl<'a> Freeze for RenderState<'a>
impl<'a> !RefUnwindSafe for RenderState<'a>
impl<'a> !Send for RenderState<'a>
impl<'a> !Sync for RenderState<'a>
impl<'a> Unpin for RenderState<'a>
impl<'a> UnsafeUnpin for RenderState<'a>
impl<'a> !UnwindSafe for RenderState<'a>
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