Implement a SelectContext for passing the select parameters and whether or not any comparison passed down exactly 1 level in the renderer.
parent
b0b857147d
commit
576d94780a
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue