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:
16
src/renderer/select_context.rs
Normal file
16
src/renderer/select_context.rs
Normal 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,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user