pub trait LookAheadMethods<S> {
    fn field_name(&self) -> &str;
    fn select_child(&self, name: &str) -> Option<&Self>;
    fn arguments(&self) -> &[LookAheadArgument<'_, S>];

    fn has_child(&self, name: &str) -> bool { ... }
    fn argument(&self, name: &str) -> Option<&LookAheadArgument<'_, S>> { ... }
}
Expand description

A set of common methods for ConcreteLookAheadSelection and LookAheadSelection

Required Methods

Get the name of the field represented by the current selection

Get the the child selection for a given field

Get the top level arguments for the current selection

Provided Methods

Check if a given field exists

Get the top level argument with a given name from the current selection

Implementors