pub struct ModalVector {
pub domain: ModalDomain,
pub force: f32,
pub flavor: ModalFlavor,
pub modal_base: Option<Symbol>,
pub ordering_source: Option<Symbol>,
}Expand description
Modal operator parameters for Kripke semantics (Kratzer-style).
Combines domain (what kind of modality), force (necessity vs possibility), and flavor (scope/evidence behavior) with the conversational backgrounds: a modal base f (which worlds are in play) and an ordering source g (how they are ranked). For evidentials the modal base names the evidence-source lexeme (seem/appear); counterfactuals use g = similarity.
Fields§
§domain: ModalDomainThe modal domain: alethic or deontic.
force: f32Modal force: 1.0 = necessity (□), 0.5 = possibility (◇), graded values between.
flavor: ModalFlavorScope flavor: root (narrow scope) or epistemic (wide scope).
modal_base: Option<Symbol>Kratzer modal base f — the conversational background supplying the accessible worlds (for evidentials: the evidence-source lexeme).
ordering_source: Option<Symbol>Kratzer ordering source g — ranks the modal-base worlds by ideality / normality / similarity.
Implementations§
Source§impl ModalVector
impl ModalVector
Sourcepub fn new(domain: ModalDomain, force: f32, flavor: ModalFlavor) -> ModalVector
pub fn new(domain: ModalDomain, force: f32, flavor: ModalFlavor) -> ModalVector
A modal vector with empty conversational backgrounds (f = g = None).
Sourcepub fn with_base(self, base: Symbol) -> ModalVector
pub fn with_base(self, base: Symbol) -> ModalVector
Attach a Kratzer modal base f.
Trait Implementations§
Source§impl Clone for ModalVector
impl Clone for ModalVector
Source§fn clone(&self) -> ModalVector
fn clone(&self) -> ModalVector
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModalVector
impl Debug for ModalVector
Source§impl PartialEq for ModalVector
impl PartialEq for ModalVector
Source§fn eq(&self, other: &ModalVector) -> bool
fn eq(&self, other: &ModalVector) -> bool
self and other values to be equal, and is used by ==.impl Copy for ModalVector
impl StructuralPartialEq for ModalVector
Auto Trait Implementations§
impl Freeze for ModalVector
impl RefUnwindSafe for ModalVector
impl Send for ModalVector
impl Sync for ModalVector
impl Unpin for ModalVector
impl UnsafeUnpin for ModalVector
impl UnwindSafe for ModalVector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.