edit in common/beancount-types/src/lib.rs at line 47
edit in common/beancount-types/src/lib.rs at line 63
+ Self::Close(inner) => {
+ inner.add_meta(key, value);
+ }
edit in common/beancount-types/src/lib.rs at line 86
+ Self::Close(inner) => inner.date,
edit in common/beancount-types/src/lib.rs at line 110
+ Self::Close(inner) => Some(&inner.account),
edit in common/beancount-types/src/lib.rs at line 121
+ Self::Close(inner) => inner.timestamp(),
edit in common/beancount-types/src/lib.rs at line 133
+ Self::Close(inner) => inner,
edit in common/beancount-types/src/lib.rs at line 146
+ }
+ }
+
+ impl From<Close> for Directive {
+ fn from(inner: Close) -> Self {
+ Self::Close(inner)
edit in common/beancount-tree-writer/src/lib.rs at line 16
+ use beancount_types::Close;
edit in common/beancount-tree-writer/src/lib.rs at line 120
+ | Directive::Close(Close { date, account, .. })
edit in common/beancount-pretty-printer/src/lib.rs at line 8
+ use beancount_types::Close;
edit in common/beancount-pretty-printer/src/lib.rs at line 160
+ Directive::Close(close) => self.print_close(close),
edit in common/beancount-pretty-printer/src/lib.rs at line 184
+ }
+
+ fn print_close(&mut self, close: &Close) -> Result<()> {
+ write!(self.inner, "{close}")
edit in common/beancount-pretty-printer/src/lib.rs at line 402
+ Directive::Close(_) | Directive::Open(_) | Directive::Price(_) => {
+ Either::Left(rayon::iter::once(Self::zero()))
+ }
+
edit in common/beancount-pretty-printer/src/lib.rs at line 409
[3.5071]→[2.1790:1871](∅→∅),
[2.1871]→[3.590:672](∅→∅),
[3.5071]→[3.590:672](∅→∅) − Directive::Open(_) => Either::Left(rayon::iter::once(Self::zero())),
− Directive::Price(_) => Either::Left(rayon::iter::once(Self::zero())),