pub enum Basis {
Authored,
DirectlyObserved,
DeterministicallyDerived,
Inferred,
Heuristic,
Unresolved,
}Expand description
The epistemic basis of an answer.
is_exact is true only for answers that are byte-identical observations of
the source. A deterministically-derived projection (e.g. inflated stream
bytes) is reproducible but is not an exact source span, so it is not exact.
Variants§
Authored
The value was authored as a literal (never produced by this module yet;
reserved for Literal seed nodes).
DirectlyObserved
The exact source bytes were observed directly.
DeterministicallyDerived
A deterministic projection of retained state (inflated bytes, structure).
Inferred
Inferred from partial evidence; never exact.
Heuristic
A best-effort heuristic projection (e.g. text runs); never exact.
Unresolved
Could not be resolved.
Implementations§
Trait Implementations§
impl Copy for Basis
impl Eq for Basis
impl StructuralPartialEq for Basis
Auto Trait Implementations§
impl Freeze for Basis
impl RefUnwindSafe for Basis
impl Send for Basis
impl Sync for Basis
impl Unpin for Basis
impl UnsafeUnpin for Basis
impl UnwindSafe for Basis
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