#[non_exhaustive]pub enum Entry<D> {
Directive(Directive<D>),
Option(BeanOption),
Include(PathBuf),
}
Expand description
Entry in the beancount syntax
It is more general than Directive
as an entry can also be option or an include.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl<D> Extend<Entry<D>> for BeancountFile<D>
impl<D> Extend<Entry<D>> for BeancountFile<D>
Source§fn extend<T: IntoIterator<Item = Entry<D>>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Entry<D>>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<D> FromIterator<Entry<D>> for BeancountFile<D>
impl<D> FromIterator<Entry<D>> for BeancountFile<D>
Auto Trait Implementations§
impl<D> Freeze for Entry<D>where
D: Freeze,
impl<D> RefUnwindSafe for Entry<D>where
D: RefUnwindSafe,
impl<D> Send for Entry<D>where
D: Send,
impl<D> Sync for Entry<D>where
D: Sync,
impl<D> Unpin for Entry<D>where
D: Unpin,
impl<D> UnwindSafe for Entry<D>where
D: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more