pub struct ShowData {
pub lemma_type: LemmaType,
pub fill: Option<RuleResultValue>,
pub suggestion: Option<RuleResultValue>,
pub needed_by_rules: Vec<String>,
}Expand description
One data entry in a Show.
A named struct instead of a tuple so JSON-native consumers (TypeScript, Python, …)
get stable field names. fill is a spec literal or literal with binding;
suggestion is a -> suggest ... hint only.
Empty needed_by_rules means the slot is offered for reuse (data x: alias.slot),
not needed by this spec’s remaining rules after normalize.
Fields§
§lemma_type: LemmaType§fill: Option<RuleResultValue>§suggestion: Option<RuleResultValue>§needed_by_rules: Vec<String>Local rule names that transitively need this data after normalize. Empty = reuse catalog only (not an eval intake key for this spec).
Trait Implementations§
Source§impl From<&ShowData> for ShowData
impl From<&ShowData> for ShowData
Source§fn from(data: &DomainShowData) -> Self
fn from(data: &DomainShowData) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ShowData
Auto Trait Implementations§
impl Freeze for ShowData
impl RefUnwindSafe for ShowData
impl Send for ShowData
impl Sync for ShowData
impl Unpin for ShowData
impl UnsafeUnpin for ShowData
impl UnwindSafe for ShowData
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