rendered
: remove #[cfg(doc)]
This commit is contained in:
parent
3306849de9
commit
552dd7586f
@ -1,13 +1,5 @@
|
||||
use std::cmp::max;
|
||||
|
||||
#[cfg(doc)]
|
||||
use crate::func::*;
|
||||
#[cfg(doc)]
|
||||
use crate::rcore::*;
|
||||
|
||||
#[cfg(doc)]
|
||||
use super::*;
|
||||
|
||||
/// Represents width (concurrency/throughput) and length (time/latency).
|
||||
/// Use [`WithLengthAndWidth::length`] and [`WithLengthAndWidth::width`] to access them.
|
||||
pub struct WithLengthAndWidth<T> {
|
||||
@ -25,24 +17,35 @@ pub enum RenderedCommon {
|
||||
/// Represented as 0x0 by default.
|
||||
///
|
||||
/// Normally, is either at the root of the trace or wrapped into [`RenderedCommon::Action`].
|
||||
///
|
||||
/// [`Pure::pure`]: crate::func::Pure::pure
|
||||
Empty,
|
||||
/// Exactly one resolution is involved in getting the value.
|
||||
///
|
||||
/// Usually, a result of [`Traceable::trace`].
|
||||
///
|
||||
/// Represented as 1x1 by default.
|
||||
///
|
||||
/// [`Traceable::trace`]: super::Traceable::trace
|
||||
Resolution,
|
||||
/// Arbitrary event for [Diagnostic]s.
|
||||
///
|
||||
/// Usually, a result of [`Diagnostic::after`]/[`Diagnostic::before`].
|
||||
///
|
||||
/// Represented as 0x0 by default.
|
||||
///
|
||||
/// [Diagnostic]: crate::rcore::Diagnostic
|
||||
/// [`Diagnostic::after`]: crate::rcore::Diagnostic::after
|
||||
/// [`Diagnostic::before`]: crate::rcore::Diagnostic::before
|
||||
Event(String),
|
||||
/// Named action for [Diagnostic]s.
|
||||
///
|
||||
/// Usually, a result of [`Diagnostic::wrapped`].
|
||||
///
|
||||
/// Represented with the same dimensions as the wrapped trace by default.
|
||||
///
|
||||
/// [Diagnostic]: crate::rcore::Diagnostic
|
||||
/// [`Diagnostic::wrapped`]: crate::rcore::Diagnostic::wrapped
|
||||
Action {
|
||||
name: String,
|
||||
rendered: Box<WithLengthAndWidth<RenderedAny>>,
|
||||
|
Loading…
Reference in New Issue
Block a user