Struct apollo_compiler::database::hir::Directive
source · pub struct Directive { /* private fields */ }
Implementations§
source§impl Directive
impl Directive
sourcepub fn argument_by_name(&self, name: &str) -> Option<&Value>
pub fn argument_by_name(&self, name: &str) -> Option<&Value>
Get a reference to the value of the directive argument with the given name, if it exists.
pub fn directive( &self, db: &dyn HirDatabase ) -> Option<Arc<DirectiveDefinition>>
sourcepub fn loc(&self) -> HirNodeLocation
pub fn loc(&self) -> HirNodeLocation
Get the AST location information for this HIR node.
Trait Implementations§
source§impl PartialEq<Directive> for Directive
impl PartialEq<Directive> for Directive
impl Eq for Directive
impl StructuralEq for Directive
impl StructuralPartialEq for Directive
Auto Trait Implementations§
impl RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl UnwindSafe for Directive
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.