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>,
pub list_writes: Option<ListWrites>,
}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.
list_writes: Option<ListWrites>For an instance list whose uses writes on every row: those fields (rule 2), which
are no inputs of its rows.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ShowData
Auto Trait Implementations§
impl Forget for ShowData
impl Freeze for ShowDatawhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<MeasureUnit>: Freeze,
PhantomData<MeasureTrait>: Freeze,
*const LeafNode<Dimension, i32> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(Dimension, i32)>>: Freeze,
PhantomData<RatioUnit>: Freeze,
*const ArcInner<LemmaType> is !null: Freeze,
PhantomData<ArcInner<LemmaType>>: Freeze,
PhantomData<KeyField>: Freeze,
PhantomData<OptionValue>: Freeze,
PhantomData<PathSegment>: Freeze,
*const LeafNode<String, Decimal> is !null: Freeze,
PhantomData<Box<(String, Decimal)>>: Freeze,
*const RangeResult is !null: Freeze,
PhantomData<RangeResult>: Freeze,
*const SpecResult is !null: Freeze,
PhantomData<SpecResult>: Freeze,
PhantomData<RuleResultValue>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, RuleResultValue>>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
impl Move for ShowData
impl RefUnwindSafe for ShowData
impl Send for ShowDatawhere
RawVecInner: Send,
Arc<str>: Send,
NodeRef<Owned, Dimension, i32, LeafOrInternal>: Send,
BoxRaw<(Dimension, i32)>: Send,
Arc<LemmaType>: Send,
BoxRaw<TypedLiteral>: Send,
Arc<RowInstance>: Send,
BoxRaw<InstanceKey>: Send,
Arc<[TypedLiteral]>: Send,
Arc<RowStore>: Send,
Arc<KeyIndex>: Send,
Arc<InstanceFactors>: Send,
NodeRef<Owned, String, Decimal, LeafOrInternal>: Send,
BoxRaw<(String, Decimal)>: Send,
BoxRaw<RangeResult>: Send,
BoxRaw<SpecResult>: Send,
RawTable<usize>: Send,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Send,
BoxRaw<(String, SetValZST)>: Send,
impl Sync for ShowDatawhere
RawVecInner: Sync,
Arc<str>: Sync,
NodeRef<Owned, Dimension, i32, LeafOrInternal>: Sync,
BoxRaw<(Dimension, i32)>: Sync,
Arc<LemmaType>: Sync,
BoxRaw<TypedLiteral>: Sync,
Arc<RowInstance>: Sync,
BoxRaw<InstanceKey>: Sync,
Arc<[TypedLiteral]>: Sync,
Arc<RowStore>: Sync,
Arc<KeyIndex>: Sync,
Arc<InstanceFactors>: Sync,
NodeRef<Owned, String, Decimal, LeafOrInternal>: Sync,
BoxRaw<(String, Decimal)>: Sync,
BoxRaw<RangeResult>: Sync,
BoxRaw<SpecResult>: Sync,
RawTable<usize>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
impl Unpin for ShowDatawhere
*const u8 is !null: Unpin,
Arc<str>: Unpin,
*const LeafNode<Dimension, i32> is !null: Unpin,
Box<(Dimension, i32)>: Unpin,
Arc<LemmaType>: Unpin,
Box<TypedLiteral>: Unpin,
Arc<RowInstance>: Unpin,
Box<InstanceKey>: Unpin,
Arc<[TypedLiteral]>: Unpin,
Arc<RowStore>: Unpin,
Arc<KeyIndex>: Unpin,
Arc<InstanceFactors>: Unpin,
*const LeafNode<String, Decimal> is !null: Unpin,
Box<(String, Decimal)>: Unpin,
Box<RangeResult>: Unpin,
Box<SpecResult>: Unpin,
*const LeafNode<String, SetValZST> is !null: Unpin,
Box<(String, SetValZST)>: Unpin,
impl UnsafeUnpin for ShowDatawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<MeasureUnit>: UnsafeUnpin,
PhantomData<MeasureTrait>: UnsafeUnpin,
*const LeafNode<Dimension, i32> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(Dimension, i32)>>: UnsafeUnpin,
PhantomData<RatioUnit>: UnsafeUnpin,
*const ArcInner<LemmaType> is !null: UnsafeUnpin,
PhantomData<ArcInner<LemmaType>>: UnsafeUnpin,
PhantomData<KeyField>: UnsafeUnpin,
PhantomData<OptionValue>: UnsafeUnpin,
PhantomData<PathSegment>: UnsafeUnpin,
*const LeafNode<String, Decimal> is !null: UnsafeUnpin,
PhantomData<Box<(String, Decimal)>>: UnsafeUnpin,
*const RangeResult is !null: UnsafeUnpin,
PhantomData<RangeResult>: UnsafeUnpin,
*const SpecResult is !null: UnsafeUnpin,
PhantomData<SpecResult>: UnsafeUnpin,
PhantomData<RuleResultValue>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, RuleResultValue>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for ShowDatawhere
RawVecInner: UnwindSafe,
Arc<str>: UnwindSafe,
BTreeMap<Dimension, i32>: UnwindSafe,
Arc<LemmaType>: UnwindSafe,
BoxRaw<TypedLiteral>: UnwindSafe,
Arc<RowInstance>: UnwindSafe,
BoxRaw<InstanceKey>: UnwindSafe,
Arc<[TypedLiteral]>: UnwindSafe,
Arc<RowStore>: UnwindSafe,
Arc<KeyIndex>: UnwindSafe,
Arc<InstanceFactors>: UnwindSafe,
BTreeMap<String, Decimal>: UnwindSafe,
BoxRaw<RangeResult>: UnwindSafe,
BoxRaw<SpecResult>: UnwindSafe,
NonNull<u8>: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
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