Implement a SelectContext for passing the select parameters and whether or not any comparison passed down exactly 1 level in the renderer.

This commit is contained in:
Tom Alexander
2020-06-07 18:33:34 -04:00
parent b0b857147d
commit 576d94780a
3 changed files with 18 additions and 13 deletions

View File

@@ -0,0 +1,16 @@
use crate::renderer::parameters_context::ParametersContext;
#[derive(Debug)]
pub struct SelectContext<'a> {
select_parameters: &'a ParametersContext<'a>,
were_any_true: bool,
}
impl<'a> SelectContext<'a> {
pub fn new(select_parameters: &'a ParametersContext<'a>, were_any_true: bool) -> Self {
SelectContext {
select_parameters: select_parameters,
were_any_true: were_any_true,
}
}
}