pub enum Selection<'a> {
Field(FieldSelection<'a>),
InlineFragment(InlineFragment<'a>),
FragmentSpread(FragmentSpread<'a>),
}Variants§
Implementations§
Source§impl<'a> Selection<'a>
impl<'a> Selection<'a>
pub fn is_field(self) -> bool
pub fn is_inline_fragment(self) -> bool
pub fn is_fragment_spread(self) -> bool
pub fn as_field(self) -> Option<FieldSelection<'a>>
pub fn as_inline_fragment(self) -> Option<InlineFragment<'a>>
pub fn as_fragment_spread(self) -> Option<FragmentSpread<'a>>
Trait Implementations§
impl<'a> Copy for Selection<'a>
Auto Trait Implementations§
impl<'a> Freeze for Selection<'a>
impl<'a> RefUnwindSafe for Selection<'a>
impl<'a> Send for Selection<'a>
impl<'a> Sync for Selection<'a>
impl<'a> Unpin for Selection<'a>
impl<'a> UnsafeUnpin for Selection<'a>
impl<'a> UnwindSafe for Selection<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more