pub enum ReferenceForm {
Full,
ShortName,
Pronoun,
Demonstrative,
Possessive,
Zero,
}Expand description
How an entity should be referred to based on discourse context.
Variants§
Full
Full form: “The class UserService”
ShortName
Name only: “UserService”
Pronoun
Pronoun: “it” / “they” / (lang-specific)
Demonstrative
Demonstrative determiner + type: “this class” / (lang-specific).
Reserved slot for future discourse rules; not currently emitted by
DiscourseState::reference_form.
Possessive
Possessive pronoun/determiner: “its” / “their” / (lang-specific).
Used by the {name|possessive} pipe after the standard discourse
policy has decided that a pronoun-form reference is appropriate.
Zero
Zero realization: surface is empty. Used by pro-drop languages
(Japanese, colloquial Spanish/Italian) where the pronoun is
recoverable from context and the slot emits nothing.
Not currently emitted by the default DiscourseState::reference_form;
language-specific discourse extensions may choose this form.
Trait Implementations§
Source§impl Clone for ReferenceForm
impl Clone for ReferenceForm
Source§fn clone(&self) -> ReferenceForm
fn clone(&self) -> ReferenceForm
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 ReferenceForm
impl Debug for ReferenceForm
Source§impl PartialEq for ReferenceForm
impl PartialEq for ReferenceForm
Source§fn eq(&self, other: &ReferenceForm) -> bool
fn eq(&self, other: &ReferenceForm) -> bool
self and other values to be equal, and is used by ==.