pub enum LogicalType {
Entity,
TruthValue,
Property,
Quantifier,
}Expand description
Montague semantic types for compositional interpretation.
These types classify expressions according to their denotation in a model-theoretic semantics, following Montague’s “Universal Grammar”.
Variants§
Entity
Type e: Individuals (entities) like “John” or “the ball”.
TruthValue
Type t: Truth values (propositions) like “John runs”.
Property
Type <e,t>: Properties (one-place predicates) like “is a unicorn”.
Quantifier
Type <<e,t>,t>: Generalized quantifiers like “every man” or “a woman”.
Trait Implementations§
Source§impl Clone for LogicalType
impl Clone for LogicalType
Source§fn clone(&self) -> LogicalType
fn clone(&self) -> LogicalType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogicalType
impl Debug for LogicalType
Source§impl PartialEq for LogicalType
impl PartialEq for LogicalType
Source§fn eq(&self, other: &LogicalType) -> bool
fn eq(&self, other: &LogicalType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LogicalType
impl Eq for LogicalType
impl StructuralPartialEq for LogicalType
Auto Trait Implementations§
impl Freeze for LogicalType
impl RefUnwindSafe for LogicalType
impl Send for LogicalType
impl Sync for LogicalType
impl Unpin for LogicalType
impl UnsafeUnpin for LogicalType
impl UnwindSafe for LogicalType
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