arch_pkg_text/srcinfo/query/
generic.rs

1use super::{Query, QueryMut, QueryRawTextItem};
2use crate::srcinfo::FieldName;
3
4impl<'a, Querier: Query<'a>> Query<'a> for &'a Querier {
5    fn query_raw_text(&self, field_name: FieldName) -> impl Iterator<Item = QueryRawTextItem<'a>> {
6        Querier::query_raw_text(*self, field_name)
7    }
8}
9
10impl<'a, Querier: Query<'a>> QueryMut<'a> for &'a Querier {
11    fn query_raw_text_mut(
12        &mut self,
13        field_name: FieldName,
14    ) -> impl Iterator<Item = QueryRawTextItem<'a>> {
15        self.query_raw_text(field_name)
16    }
17}
18
19impl<'a, Querier: QueryMut<'a>> QueryMut<'a> for &'a mut Querier {
20    fn query_raw_text_mut(
21        &mut self,
22        field_name: FieldName,
23    ) -> impl Iterator<Item = QueryRawTextItem<'a>> {
24        Querier::query_raw_text_mut(*self, field_name)
25    }
26}
27
28#[cfg(feature = "std")]
29mod std_ext;