Struct apollo_compiler::database::hir::UnionMember
source · pub struct UnionMember { /* private fields */ }
Implementations§
source§impl UnionMember
impl UnionMember
sourcepub fn object(&self, db: &dyn HirDatabase) -> Option<Arc<ObjectTypeDefinition>>
pub fn object(&self, db: &dyn HirDatabase) -> Option<Arc<ObjectTypeDefinition>>
Get the object definition this union member 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 UnionMember
impl Clone for UnionMember
source§fn clone(&self) -> UnionMember
fn clone(&self) -> UnionMember
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 UnionMember
impl Debug for UnionMember
source§impl Hash for UnionMember
impl Hash for UnionMember
source§impl PartialEq<UnionMember> for UnionMember
impl PartialEq<UnionMember> for UnionMember
source§fn eq(&self, other: &UnionMember) -> bool
fn eq(&self, other: &UnionMember) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UnionMember
impl StructuralEq for UnionMember
impl StructuralPartialEq for UnionMember
Auto Trait Implementations§
impl RefUnwindSafe for UnionMember
impl Send for UnionMember
impl Sync for UnionMember
impl Unpin for UnionMember
impl UnwindSafe for UnionMember
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.