Enum apollo_parser::ast::Selection
source · pub enum Selection {
Field(Field),
FragmentSpread(FragmentSpread),
InlineFragment(InlineFragment),
}
Variants
Field(Field)
FragmentSpread(FragmentSpread)
InlineFragment(InlineFragment)
Trait Implementations
sourceimpl AstNode for Selection
impl AstNode for Selection
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn source_string(&self) -> String
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
sourceimpl From<FragmentSpread> for Selection
impl From<FragmentSpread> for Selection
sourcefn from(node: FragmentSpread) -> Selection
fn from(node: FragmentSpread) -> Selection
Converts to this type from the input type.
sourceimpl From<InlineFragment> for Selection
impl From<InlineFragment> for Selection
sourcefn from(node: InlineFragment) -> Selection
fn from(node: InlineFragment) -> Selection
Converts to this type from the input type.
impl Eq for Selection
impl StructuralEq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations
impl !RefUnwindSafe for Selection
impl !Send for Selection
impl !Sync for Selection
impl Unpin for Selection
impl !UnwindSafe for Selection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more