Struct apollo_compiler::database::hir::ImplementsInterface
source · pub struct ImplementsInterface { /* private fields */ }
Implementations§
source§impl ImplementsInterface
impl ImplementsInterface
sourcepub fn interface_definition(
&self,
db: &dyn HirDatabase
) -> Option<Arc<InterfaceTypeDefinition>>
pub fn interface_definition( &self, db: &dyn HirDatabase ) -> Option<Arc<InterfaceTypeDefinition>>
Get the interface this implements interface is referencing.
sourcepub fn loc(&self) -> HirNodeLocation
pub fn loc(&self) -> HirNodeLocation
Get the AST location information for this HIR node.
Trait Implementations§
source§impl Clone for ImplementsInterface
impl Clone for ImplementsInterface
source§fn clone(&self) -> ImplementsInterface
fn clone(&self) -> ImplementsInterface
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 ImplementsInterface
impl Debug for ImplementsInterface
source§impl Hash for ImplementsInterface
impl Hash for ImplementsInterface
source§impl PartialEq<ImplementsInterface> for ImplementsInterface
impl PartialEq<ImplementsInterface> for ImplementsInterface
source§fn eq(&self, other: &ImplementsInterface) -> bool
fn eq(&self, other: &ImplementsInterface) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ImplementsInterface
impl StructuralEq for ImplementsInterface
impl StructuralPartialEq for ImplementsInterface
Auto Trait Implementations§
impl RefUnwindSafe for ImplementsInterface
impl Send for ImplementsInterface
impl Sync for ImplementsInterface
impl Unpin for ImplementsInterface
impl UnwindSafe for ImplementsInterface
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.