pub struct Referent {
pub variable: Symbol,
pub noun_class: Symbol,
pub gender: Gender,
pub number: Number,
pub source: ReferentSource,
pub used_by_pronoun: bool,
pub ownership: OwnershipState,
pub modifiers: Vec<Symbol>,
}Fields§
§variable: Symbol§noun_class: Symbol§gender: Gender§number: Number§source: ReferentSource§used_by_pronoun: bool§ownership: OwnershipState§modifiers: Vec<Symbol>The distinguishing modifier(s) of the description that introduced this
referent — the adjective/gerund that does the REFERRING in “the
[modifier] [head]”. For “the hunting vacation” this holds Hunt. Empty
for bare descriptions (“the vacation”). Used by context-driven
coreference: two definite descriptions that share their distinguishing
modifier AND have sort-compatible head nouns denote the same entity.
Implementations§
Source§impl Referent
impl Referent
pub fn new( variable: Symbol, noun_class: Symbol, gender: Gender, number: Number, source: ReferentSource, ) -> Self
Sourcepub fn with_modifiers(
variable: Symbol,
noun_class: Symbol,
gender: Gender,
number: Number,
source: ReferentSource,
modifiers: Vec<Symbol>,
) -> Self
pub fn with_modifiers( variable: Symbol, noun_class: Symbol, gender: Gender, number: Number, source: ReferentSource, modifiers: Vec<Symbol>, ) -> Self
Construct a referent carrying its distinguishing modifier(s).
pub fn should_be_universal(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Referent
impl RefUnwindSafe for Referent
impl Send for Referent
impl Sync for Referent
impl Unpin for Referent
impl UnsafeUnpin for Referent
impl UnwindSafe for Referent
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