pub struct LedgerEntry<'i, Deco: Decoration> {
pub separation: Separation,
pub statement: LedgerStatement<'i, Deco>,
}Expand description
Top-level entry of the LedgerFile, a LedgerStatement with its layout context.
Fields§
§separation: SeparationHow the entry is separated from the previous entry.
statement: LedgerStatement<'i, Deco>The statement itself.
Implementations§
Source§impl<'i, Deco: Decoration> LedgerEntry<'i, Deco>
impl<'i, Deco: Decoration> LedgerEntry<'i, Deco>
Sourcepub fn new(statement: LedgerStatement<'i, Deco>) -> Self
pub fn new(statement: LedgerStatement<'i, Deco>) -> Self
Creates an entry separated from the previous entry by a blank line, which is the usual way to write a Ledger file.
Trait Implementations§
Source§impl<'i, Deco: Decoration> AsUndecorated<LedgerEntry<'i, Deco>> for LedgerEntry<'i, Deco>
impl<'i, Deco: Decoration> AsUndecorated<LedgerEntry<'i, Deco>> for LedgerEntry<'i, Deco>
fn as_undecorated(&self) -> &LedgerEntry<'i, Deco>
Source§impl<'i, Deco: Decoration> Debug for LedgerEntry<'i, Deco>
impl<'i, Deco: Decoration> Debug for LedgerEntry<'i, Deco>
impl<'i, Deco: Decoration> Eq for LedgerEntry<'i, Deco>
Auto Trait Implementations§
impl<'i, Deco> Freeze for LedgerEntry<'i, Deco>where
LedgerStatement<'i, Deco>: Freeze,
impl<'i, Deco> RefUnwindSafe for LedgerEntry<'i, Deco>where
LedgerStatement<'i, Deco>: RefUnwindSafe,
impl<'i, Deco> Send for LedgerEntry<'i, Deco>where
LedgerStatement<'i, Deco>: Send,
impl<'i, Deco> Sync for LedgerEntry<'i, Deco>where
LedgerStatement<'i, Deco>: Sync,
impl<'i, Deco> Unpin for LedgerEntry<'i, Deco>where
LedgerStatement<'i, Deco>: Unpin,
impl<'i, Deco> UnsafeUnpin for LedgerEntry<'i, Deco>where
LedgerStatement<'i, Deco>: UnsafeUnpin,
impl<'i, Deco> UnwindSafe for LedgerEntry<'i, Deco>where
LedgerStatement<'i, Deco>: 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