Enum apollo_compiler::ast::Selection
source · pub enum Selection {
Field(Node<Field>),
FragmentSpread(Node<FragmentSpread>),
InlineFragment(Node<InlineFragment>),
}
Variants§
Implementations§
source§impl Selection
impl Selection
pub fn location(&self) -> Option<NodeLocation>
pub fn as_field(&self) -> Option<&Node<Field>>
pub fn as_fragment_spread(&self) -> Option<&Node<FragmentSpread>>
pub fn as_inline_fragment(&self) -> Option<&Node<InlineFragment>>
Trait Implementations§
source§impl PartialEq for Selection
impl PartialEq for Selection
impl Eq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.