pub enum SelectionReference<'a, S: Selection> {
Field(&'a S::Field),
FragmentSpread(&'a S::FragmentSpread),
InlineFragment(&'a S::InlineFragment),
}Variants§
Implementations§
Source§impl<'a, S: Selection> SelectionReference<'a, S>
impl<'a, S: Selection> SelectionReference<'a, S>
pub fn directives(&self) -> Option<&'a <S::Field as Field>::Directives>
pub fn associated_directive_location(&self) -> DirectiveLocation
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for SelectionReference<'a, S>
impl<'a, S> RefUnwindSafe for SelectionReference<'a, S>where
<S as Selection>::Field: RefUnwindSafe,
<S as Selection>::FragmentSpread: RefUnwindSafe,
<S as Selection>::InlineFragment: RefUnwindSafe,
impl<'a, S> Send for SelectionReference<'a, S>where
<S as Selection>::Field: Sync,
<S as Selection>::FragmentSpread: Sync,
<S as Selection>::InlineFragment: Sync,
impl<'a, S> Sync for SelectionReference<'a, S>where
<S as Selection>::Field: Sync,
<S as Selection>::FragmentSpread: Sync,
<S as Selection>::InlineFragment: Sync,
impl<'a, S> Unpin for SelectionReference<'a, S>
impl<'a, S> UnwindSafe for SelectionReference<'a, S>where
<S as Selection>::Field: RefUnwindSafe,
<S as Selection>::FragmentSpread: RefUnwindSafe,
<S as Selection>::InlineFragment: RefUnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more