pub enum SemanticSubject<'a> {
Entity(SemanticEntity),
Node {
file: FileId,
node: &'a SyntaxNode,
location: SourceLocation,
},
}Expand description
A type or instantiation belongs to this exact declaration, occurrence or node.
Variants§
Trait Implementations§
Source§impl<'a> Clone for SemanticSubject<'a>
impl<'a> Clone for SemanticSubject<'a>
Auto Trait Implementations§
impl<'a> Freeze for SemanticSubject<'a>
impl<'a> RefUnwindSafe for SemanticSubject<'a>
impl<'a> Send for SemanticSubject<'a>
impl<'a> Sync for SemanticSubject<'a>
impl<'a> Unpin for SemanticSubject<'a>
impl<'a> UnsafeUnpin for SemanticSubject<'a>
impl<'a> UnwindSafe for SemanticSubject<'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