pub struct Situation {
pub tokens: Vec<String>,
pub display: Vec<String>,
pub numbers: Vec<(String, f64)>,
pub beliefs: Vec<(String, f32)>,
}Expand description
One projected record: the tokens it asserts (for set-algebra), the cells to show for it, and any
numeric fields it carries (for (num <field> <op> <value>) range predicates — e.g. a CSV numeric
column or a canonicalised quantity span like qty-length = 70 m).
Fields§
§tokens: Vec<String>§display: Vec<String>§numbers: Vec<(String, f64)>§beliefs: Vec<(String, f32)>Infon polarity per token (paper §1.2): (token, i) where i ∈ {-1, -0.5, +0.5, +1}. Only
tokens whose polarity differs from the default +1 need an entry; the rest are asserted-positive.
Populated from the tagger’s epistemic head and consumed by InfonIndex::add_infon_polar.
Implementations§
Auto Trait Implementations§
impl Freeze for Situation
impl RefUnwindSafe for Situation
impl Send for Situation
impl Sync for Situation
impl Unpin for Situation
impl UnsafeUnpin for Situation
impl UnwindSafe for Situation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.