Document selection_fields

This commit is contained in:
Oliver Cooper 2021-09-28 16:50:27 +13:00
parent 2725bb7b03
commit bb74b2f46d

View File

@ -55,6 +55,9 @@ impl<'a> Lookahead<'a> {
!self.fields.is_empty()
}
/// Get the `SelectionField`s for each of the fields covered by this `Lookahead`.
///
/// There will be multiple fields in situations where the same field is queried twice.
pub fn selection_fields(&self) -> Vec<SelectionField<'a>> {
self.fields
.iter()