sidoc/
doc.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::Node;

/// A "Doc" represents a set of lines and references to other Doc's.
#[derive(Default)]
pub struct Doc {
  pub(crate) nodes: Vec<Node>
}

impl Doc {
  #[must_use]
  pub fn new() -> Self {
    Self::default()
  }
}

// vim: set ft=rust et sw=2 ts=2 sts=2 cinoptions=2 tw=79 :