pub struct DomainGloss {
pub templates: &'static [(&'static str, &'static str)],
pub glosses: &'static [(&'static str, &'static str)],
pub names: &'static [(&'static str, &'static str)],
}Expand description
A domain-term overlay for one curated example. The tables are tiny (a handful of entries each), so a linear scan is fine.
Fields§
§templates: &'static [(&'static str, &'static str)]Place-frame template overrides keyed by bare gismu. Placeholders {x1}..
may reorder, e.g. se cuts -> “{x2} is metabolized by {x1}” (the IR has
already swapped the se args, so the template keys on the bare gismu).
glosses: &'static [(&'static str, &'static str)]Single-word noun-gloss overrides keyed by gismu (e.g. the “a
names: &'static [(&'static str, &'static str)]Display-name overrides keyed by constant (cmevla), e.g. varfarin ->
“warfarin”, siptucin -> “CYP2C9”.
Implementations§
Trait Implementations§
Source§impl Clone for DomainGloss
impl Clone for DomainGloss
Source§fn clone(&self) -> DomainGloss
fn clone(&self) -> DomainGloss
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 moreimpl Copy for DomainGloss
Auto Trait Implementations§
impl Freeze for DomainGloss
impl RefUnwindSafe for DomainGloss
impl Send for DomainGloss
impl Sync for DomainGloss
impl Unpin for DomainGloss
impl UnsafeUnpin for DomainGloss
impl UnwindSafe for DomainGloss
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