pub enum RegAlgorithm {
DaleReiter,
GraphBased,
}Expand description
Selects the REG (Referring Expression Generation) algorithm used by
the {name|refer} pipe when rendering the Full form of a reference.
The default is DaleReiter, which matches
the historical behaviour of the engine.
Variants§
DaleReiter
Dale & Reiter 1995 Incremental Algorithm.
Disambiguates same-type entities using unary attributes only — e.g. “the domain class UserService” vs “the infra class AuthService”. Fast, well-understood, and the default.
GraphBased
Krahmer et al. 2003 graph-based greedy algorithm.
Handles both unary attributes AND binary relations between entities. When attributes alone do not disambiguate, the algorithm appends one relation clause — e.g. “the api function LoginHandler that calls AuthService”. Falls back silently to D&R behaviour when no relations are registered.
Trait Implementations§
Source§impl Clone for RegAlgorithm
impl Clone for RegAlgorithm
Source§fn clone(&self) -> RegAlgorithm
fn clone(&self) -> RegAlgorithm
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 RegAlgorithm
impl Debug for RegAlgorithm
Source§impl Default for RegAlgorithm
impl Default for RegAlgorithm
Source§fn default() -> RegAlgorithm
fn default() -> RegAlgorithm
Source§impl PartialEq for RegAlgorithm
impl PartialEq for RegAlgorithm
Source§fn eq(&self, other: &RegAlgorithm) -> bool
fn eq(&self, other: &RegAlgorithm) -> bool
self and other values to be equal, and is used by ==.