Fix doctest trying to compile text diagram
This commit is contained in:
parent
8055e85f38
commit
82908f8185
|
|
@ -2,10 +2,11 @@ use core::marker::PhantomData;
|
||||||
|
|
||||||
use crate::{Node, NodeMut};
|
use crate::{Node, NodeMut};
|
||||||
|
|
||||||
// This is how we can generically define composition of two nodes.
|
/// This is how we can generically define composition of two nodes.
|
||||||
// This is done generically as shown: <https://files.keavon.com/-/SurprisedGaseousAnhinga/capture.png>
|
/// This is done generically as shown: <https://files.keavon.com/-/SurprisedGaseousAnhinga/capture.png>
|
||||||
// A concrete example: <https://files.keavon.com/-/ExcitableGoldRay/capture.png>
|
/// A concrete example: <https://files.keavon.com/-/ExcitableGoldRay/capture.png>
|
||||||
// And showing the direction of data flow: <https://files.keavon.com/-/SoreShimmeringElephantseal/capture.png>
|
/// And showing the direction of data flow: <https://files.keavon.com/-/SoreShimmeringElephantseal/capture.png>
|
||||||
|
/// ```text
|
||||||
/// ┌────────────────┐
|
/// ┌────────────────┐
|
||||||
/// T │ │ U
|
/// T │ │ U
|
||||||
/// ───────────►│ Compose Node ├───────────►
|
/// ───────────►│ Compose Node ├───────────►
|
||||||
|
|
@ -21,6 +22,7 @@ use crate::{Node, NodeMut};
|
||||||
/// │ Second ├─────────────►│ │
|
/// │ Second ├─────────────►│ │
|
||||||
/// │ │ └───────────┘
|
/// │ │ └───────────┘
|
||||||
/// └──────────┘
|
/// └──────────┘
|
||||||
|
/// ```
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy)]
|
||||||
pub struct ComposeNode<First, Second, I> {
|
pub struct ComposeNode<First, Second, I> {
|
||||||
first: First,
|
first: First,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue