pub struct FragmentDefinition { /* private fields */ }
Implementations§
source§impl FragmentDefinition
impl FragmentDefinition
pub fn fragment_token(&self) -> Option<SyntaxToken>
pub fn fragment_name(&self) -> Option<FragmentName>
pub fn type_condition(&self) -> Option<TypeCondition>
pub fn directives(&self) -> Option<Directives>
pub fn selection_set(&self) -> Option<SelectionSet>
Trait Implementations§
source§impl Clone for FragmentDefinition
impl Clone for FragmentDefinition
source§fn clone(&self) -> FragmentDefinition
fn clone(&self) -> FragmentDefinition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CstNode for FragmentDefinition
impl CstNode for FragmentDefinition
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 Debug for FragmentDefinition
impl Debug for FragmentDefinition
source§impl From<FragmentDefinition> for Definition
impl From<FragmentDefinition> for Definition
source§fn from(node: FragmentDefinition) -> Definition
fn from(node: FragmentDefinition) -> Definition
Converts to this type from the input type.
source§impl Hash for FragmentDefinition
impl Hash for FragmentDefinition
source§impl PartialEq for FragmentDefinition
impl PartialEq for FragmentDefinition
impl Eq for FragmentDefinition
impl StructuralPartialEq for FragmentDefinition
Auto Trait Implementations§
impl Freeze for FragmentDefinition
impl !RefUnwindSafe for FragmentDefinition
impl !Send for FragmentDefinition
impl !Sync for FragmentDefinition
impl Unpin for FragmentDefinition
impl !UnwindSafe for FragmentDefinition
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)