Implemented early termination.

This commit is contained in:
Tom Alexander
2020-06-07 19:10:25 -04:00
parent 0fac063c8d
commit 88887bff0f
2 changed files with 38 additions and 26 deletions

View File

@@ -4,6 +4,7 @@ use crate::renderer::parameters_context::ParametersContext;
pub struct SelectContext<'a> {
pub select_parameters: &'a ParametersContext<'a>,
pub were_any_true: bool,
pub allowed_to_render_any_more_conditionals: bool,
}
impl<'a> SelectContext<'a> {
@@ -11,6 +12,7 @@ impl<'a> SelectContext<'a> {
SelectContext {
select_parameters: select_parameters,
were_any_true: were_any_true,
allowed_to_render_any_more_conditionals: true,
}
}
}