pub trait Selection: Sized {
type Field: Field;
type FragmentSpread: FragmentSpread<Directives = <Self::Field as Field>::Directives>;
type InlineFragment: InlineFragment<Directives = <Self::Field as Field>::Directives>;
// Required method
fn as_ref(&self) -> SelectionReference<'_, Self>;
}Required Associated Types§
type Field: Field
type FragmentSpread: FragmentSpread<Directives = <Self::Field as Field>::Directives>
type InlineFragment: InlineFragment<Directives = <Self::Field as Field>::Directives>
Required Methods§
fn as_ref(&self) -> SelectionReference<'_, Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.