use super::{FilterList, Method, Text};
use crate::scripts::grouping::MultiLangScript;
pub struct Query<'a, 'b> {
pub(crate) text: &'a str,
pub(crate) filter_list: &'b FilterList,
pub(crate) method: Method,
}
pub struct InternalQuery<'a, 'b> {
pub(crate) text: Text<'a>,
pub(crate) filter_list: &'b FilterList,
pub(crate) multi_lang_script: MultiLangScript,
}
impl<'a, 'b> Query<'a, 'b> {
pub(crate) fn to_internal(&self, multi_lang_script: MultiLangScript) -> InternalQuery<'a, 'b> {
InternalQuery {
text: Text::new(self.text),
filter_list: self.filter_list,
multi_lang_script,
}
}
}