Enum apollo_parser::cst::Selection
source · pub enum Selection {
Field(Field),
FragmentSpread(FragmentSpread),
InlineFragment(InlineFragment),
}
Variants§
Trait Implementations§
source§impl CstNode for Selection
impl CstNode 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,
source§impl From<FragmentSpread> for Selection
impl From<FragmentSpread> for Selection
source§fn from(node: FragmentSpread) -> Selection
fn from(node: FragmentSpread) -> Selection
Converts to this type from the input type.
source§impl From<InlineFragment> for Selection
impl From<InlineFragment> for Selection
source§fn from(node: InlineFragment) -> Selection
fn from(node: InlineFragment) -> Selection
Converts to this type from the input type.
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