pub struct Origin {
pub source: String,
pub line: u32,
pub premise: Option<String>,
pub kind: &'static str,
}Expand description
Where a piece of IR came from — for readable conflict/warning pools.
Fields§
§source: StringThe source label this came from (file name or "<root>"/"<text>").
line: u321-based line number of the originating statement.
premise: Option<String>The premise/rule name, if it came from a named construct.
kind: &'static strSurface kind for the report, e.g. "FACT", "EXCLUSIVE", "PREMISE".
Trait Implementations§
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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