Enum apollo_compiler::executable::OperationRef
source · pub enum OperationRef<'a> {
Anonymous(&'a Node<Operation>),
Named(&'a Name, &'a Node<Operation>),
}
Variants§
Implementations§
Methods from Deref<Target = Node<Operation>>§
pub fn location(&self) -> Option<NodeLocation>
sourcepub fn is_built_in(&self) -> bool
pub fn is_built_in(&self) -> bool
Whether this node is located in FileId::BUILT_IN
,
which defines built-in directives, built-in scalars, and introspection types.
sourcepub fn same_location<U>(&self, node: U) -> Node<U>
pub fn same_location<U>(&self, node: U) -> Node<U>
Returns the given node
at the same location as self
(e.g. for a type conversion).
pub fn to_component(&self, origin: ComponentOrigin) -> Component<T>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for OperationRef<'a>
impl<'a> Send for OperationRef<'a>
impl<'a> Sync for OperationRef<'a>
impl<'a> Unpin for OperationRef<'a>
impl<'a> UnwindSafe for OperationRef<'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