mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 06:18:12 +08:00
Fix doctest trying to compile text diagram
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user