pub struct ModalContext {
pub active: bool,
pub is_epistemic: bool,
pub force: f32,
}Expand description
Modal context for tracking hypothetical worlds across sentences. Enables modal subordination: “A wolf might walk in. It would eat you.”
Fields§
§active: boolWhether we’re currently inside a modal scope
is_epistemic: boolThe modal flavor (epistemic vs root)
force: f32Force value (0.0 = impossibility, 1.0 = necessity)
Trait Implementations§
Source§impl Clone for ModalContext
impl Clone for ModalContext
Source§fn clone(&self) -> ModalContext
fn clone(&self) -> ModalContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModalContext
impl RefUnwindSafe for ModalContext
impl Send for ModalContext
impl Sync for ModalContext
impl Unpin for ModalContext
impl UnwindSafe for ModalContext
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