Skip to main content

Explanation

Struct Explanation 

Source
pub struct Explanation {
    pub name: RulePath,
    pub result: OperationResult,
    pub result_type: Arc<LemmaType>,
    pub body: String,
    pub causes: Vec<Cause>,
    pub children: Vec<ExplanationNode>,
    pub rules: Vec<ExplainedRule>,
    /* private fields */
}

Fields§

§name: RulePath§result: OperationResult§result_type: Arc<LemmaType>

Type of Self::result for measure/ratio rendering (binding unit).

§body: String§causes: Vec<Cause>§children: Vec<ExplanationNode>§rules: Vec<ExplainedRule>

Reachable narrated rules, ids in first-reach order from this root.

Trait Implementations§

Source§

impl Clone for Explanation

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Explanation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for Explanation

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Forget for Explanation

§

impl Freeze for Explanation
where *const u8 is !null: Freeze, PhantomData<PathSegment>: Freeze, PhantomData<u8>: Freeze, PhantomData<u32>: Freeze, *const ArcInner<str> is !null: Freeze, PhantomData<ArcInner<str>>: Freeze, *const TypedLiteral is !null: Freeze, PhantomData<TypedLiteral>: Freeze, *const ArcInner<RowInstance> is !null: Freeze, PhantomData<ArcInner<RowInstance>>: Freeze, *const InstanceKey is !null: Freeze, PhantomData<InstanceKey>: Freeze, *const ArcInner<[TypedLiteral]> is !null: Freeze, PhantomData<ArcInner<[TypedLiteral]>>: Freeze, *const ArcInner<RowStore> is !null: Freeze, PhantomData<ArcInner<RowStore>>: Freeze, *const ArcInner<LemmaType> is !null: Freeze, PhantomData<ArcInner<LemmaType>>: Freeze, *const ArcInner<KeyIndex> is !null: Freeze, PhantomData<ArcInner<KeyIndex>>: Freeze, *const ArcInner<InstanceFactors> is !null: Freeze, PhantomData<ArcInner<InstanceFactors>>: Freeze, *const ArcInner<FamilyUnitCatalog> is !null: Freeze, PhantomData<ArcInner<FamilyUnitCatalog>>: Freeze, PhantomData<(String, RationalInteger)>: Freeze, PhantomData<Cause>: Freeze, PhantomData<ExplanationNode>: Freeze, PhantomData<ExplainedRule>: Freeze,

§

impl Move for Explanation

§

impl RefUnwindSafe for Explanation

§

impl Send for Explanation
where RawVecInner: Send, Arc<str>: Send, BoxRaw<TypedLiteral>: Send, Arc<RowInstance>: Send, BoxRaw<InstanceKey>: Send, Arc<[TypedLiteral]>: Send, Arc<RowStore>: Send, Arc<LemmaType>: Send, Arc<KeyIndex>: Send, Arc<InstanceFactors>: Send, Arc<FamilyUnitCatalog>: Send, RawTable<(String, RationalInteger)>: Send, NodeRef<Owned, String, Decimal, LeafOrInternal>: Send, BoxRaw<(String, Decimal)>: Send, BoxRaw<RangeResult>: Send, BoxRaw<SpecResult>: Send, RawTable<usize>: Send,

§

impl Sync for Explanation
where RawVecInner: Sync, Arc<str>: Sync, BoxRaw<TypedLiteral>: Sync, Arc<RowInstance>: Sync, BoxRaw<InstanceKey>: Sync, Arc<[TypedLiteral]>: Sync, Arc<RowStore>: Sync, Arc<LemmaType>: Sync, Arc<KeyIndex>: Sync, Arc<InstanceFactors>: Sync, Arc<FamilyUnitCatalog>: Sync, RawTable<(String, RationalInteger)>: Sync, NodeRef<Owned, String, Decimal, LeafOrInternal>: Sync, BoxRaw<(String, Decimal)>: Sync, BoxRaw<RangeResult>: Sync, BoxRaw<SpecResult>: Sync, RawTable<usize>: Sync,

§

impl Unpin for Explanation
where *const u8 is !null: Unpin, Arc<str>: Unpin, Box<TypedLiteral>: Unpin, Arc<RowInstance>: Unpin, Box<InstanceKey>: Unpin, Arc<[TypedLiteral]>: Unpin, Arc<RowStore>: Unpin, Arc<LemmaType>: Unpin, Arc<KeyIndex>: Unpin, Arc<InstanceFactors>: Unpin, Arc<FamilyUnitCatalog>: Unpin, *const LeafNode<String, Decimal> is !null: Unpin, Box<(String, Decimal)>: Unpin, Box<RangeResult>: Unpin, Box<SpecResult>: Unpin,

§

impl UnsafeUnpin for Explanation
where *const u8 is !null: UnsafeUnpin, PhantomData<PathSegment>: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<u32>: UnsafeUnpin, *const ArcInner<str> is !null: UnsafeUnpin, PhantomData<ArcInner<str>>: UnsafeUnpin, *const TypedLiteral is !null: UnsafeUnpin, PhantomData<TypedLiteral>: UnsafeUnpin, *const ArcInner<RowInstance> is !null: UnsafeUnpin, PhantomData<ArcInner<RowInstance>>: UnsafeUnpin, *const InstanceKey is !null: UnsafeUnpin, PhantomData<InstanceKey>: UnsafeUnpin, *const ArcInner<[TypedLiteral]> is !null: UnsafeUnpin, PhantomData<ArcInner<[TypedLiteral]>>: UnsafeUnpin, *const ArcInner<RowStore> is !null: UnsafeUnpin, PhantomData<ArcInner<RowStore>>: UnsafeUnpin, *const ArcInner<LemmaType> is !null: UnsafeUnpin, PhantomData<ArcInner<LemmaType>>: UnsafeUnpin, *const ArcInner<KeyIndex> is !null: UnsafeUnpin, PhantomData<ArcInner<KeyIndex>>: UnsafeUnpin, *const ArcInner<InstanceFactors> is !null: UnsafeUnpin, PhantomData<ArcInner<InstanceFactors>>: UnsafeUnpin, *const ArcInner<FamilyUnitCatalog> is !null: UnsafeUnpin, PhantomData<ArcInner<FamilyUnitCatalog>>: UnsafeUnpin, PhantomData<(String, RationalInteger)>: UnsafeUnpin, PhantomData<Cause>: UnsafeUnpin, PhantomData<ExplanationNode>: UnsafeUnpin, PhantomData<ExplainedRule>: UnsafeUnpin,

§

impl UnwindSafe for Explanation

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.