pub struct FragmentDefinition<'a>(/* private fields */);
Implementations§
Source§impl<'a> FragmentDefinition<'a>
impl<'a> FragmentDefinition<'a>
pub fn name(&self) -> &'a str
pub fn name_span(&self) -> Span
pub fn type_condition(&self) -> &'a str
pub fn type_condition_span(&self) -> Span
pub fn directives(&self) -> Iter<'a, Directive<'a>> ⓘ
pub fn selection_set(&self) -> Iter<'a, Selection<'a>> ⓘ
pub fn selection_set_span(&self) -> Span
Source§impl FragmentDefinition<'_>
impl FragmentDefinition<'_>
pub fn id(&self) -> FragmentDefinitionId
Trait Implementations§
Source§impl<'a> Clone for FragmentDefinition<'a>
impl<'a> Clone for FragmentDefinition<'a>
Source§fn clone(&self) -> FragmentDefinition<'a>
fn clone(&self) -> FragmentDefinition<'a>
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 Debug for FragmentDefinition<'_>
impl Debug for FragmentDefinition<'_>
Source§impl IdReader for FragmentDefinition<'_>
impl IdReader for FragmentDefinition<'_>
type Id = FragmentDefinitionId
type Reader<'a> = FragmentDefinition<'a>
fn new(id: Self::Id, document: &ExecutableDocument) -> Self::Reader<'_>
impl<'a> Copy for FragmentDefinition<'a>
Auto Trait Implementations§
impl<'a> Freeze for FragmentDefinition<'a>
impl<'a> RefUnwindSafe for FragmentDefinition<'a>
impl<'a> Send for FragmentDefinition<'a>
impl<'a> Sync for FragmentDefinition<'a>
impl<'a> Unpin for FragmentDefinition<'a>
impl<'a> UnwindSafe for FragmentDefinition<'a>
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