pub enum Explanation {
Package(PackageExplanation),
Target(TargetExplanation),
Source(SourceExplanation),
Feature(FeatureExplanation),
}Expand description
Typed explanation chain returned by every cabin explain
query. Renderers read the variant to choose the layout; the
JSON output is a tagged union so downstream tooling sees the
query kind without re-parsing.
Variants§
Package(PackageExplanation)
cabin explain package <name>.
Target(TargetExplanation)
cabin explain target <name>.
Source(SourceExplanation)
cabin explain source <package>.
Feature(FeatureExplanation)
cabin explain feature <package/feature>.
Trait Implementations§
Source§impl Clone for Explanation
impl Clone for Explanation
Source§fn clone(&self) -> Explanation
fn clone(&self) -> Explanation
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 moreSource§impl Debug for Explanation
impl Debug for Explanation
Auto Trait Implementations§
impl Freeze for Explanation
impl RefUnwindSafe for Explanation
impl Send for Explanation
impl Sync for Explanation
impl Unpin for Explanation
impl UnsafeUnpin for Explanation
impl UnwindSafe for Explanation
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