pub struct ShowData {
pub lemma_type: LemmaType,
pub path: Vec<PathSegment>,
pub value: 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§path: Vec<PathSegment>Import hops to this slot ([] = this spec). Clone of DataPath::segments.
value: Option<RuleResultValue>§suggestion: Option<RuleResultValue>§needed_by_rules: Vec<String>Show.rules keys that transitively need this data after normalize. Show.data only includes slots where this is non-empty.
Trait Implementations§
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