pub struct SemanticEvent { /* private fields */ }Expand description
A semantic IR event paired with its version-independent location.
Implementations§
Source§impl SemanticEvent
impl SemanticEvent
Sourcepub fn new(cursor: IrCursor, kind: SemanticEventKind) -> Self
pub fn new(cursor: IrCursor, kind: SemanticEventKind) -> Self
Create a semantic event at the supplied cursor.
Sourcepub fn kind(&self) -> &SemanticEventKind
pub fn kind(&self) -> &SemanticEventKind
Return the event payload.
Sourcepub fn into_parts(self) -> (IrCursor, SemanticEventKind)
pub fn into_parts(self) -> (IrCursor, SemanticEventKind)
Consume this value and return its cursor and payload.
Trait Implementations§
Source§impl Clone for SemanticEvent
impl Clone for SemanticEvent
Source§impl Debug for SemanticEvent
impl Debug for SemanticEvent
Source§impl PartialEq for SemanticEvent
impl PartialEq for SemanticEvent
impl StructuralPartialEq for SemanticEvent
Auto Trait Implementations§
impl Freeze for SemanticEvent
impl RefUnwindSafe for SemanticEvent
impl Send for SemanticEvent
impl Sync for SemanticEvent
impl Unpin for SemanticEvent
impl UnsafeUnpin for SemanticEvent
impl UnwindSafe for SemanticEvent
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