rendered: remove #[cfg(doc)]

This commit is contained in:
AF 2023-07-30 11:35:32 +00:00
parent 3306849de9
commit 552dd7586f

View File

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