pub struct ReportContext<'ctx> { /* private fields */ }Expand description
Context object extensively used across Ledger file evaluation.
Implementations§
Source§impl<'ctx> ReportContext<'ctx>
impl<'ctx> ReportContext<'ctx>
Sourcepub fn account(&self, value: &str) -> Option<Account<'ctx>>
pub fn account(&self, value: &str) -> Option<Account<'ctx>>
Returns the given account, or None if not found.
Sourcepub fn commodity(&self, value: &str) -> Option<CommodityTag<'ctx>>
pub fn commodity(&self, value: &str) -> Option<CommodityTag<'ctx>>
Returns the given commmodity, or None if not found.
Sourcepub fn commodity_store(&self) -> &CommodityStore<'ctx>
pub fn commodity_store(&self) -> &CommodityStore<'ctx>
Returns CommodityStore.
Sourcepub fn commodity_store_mut(&mut self) -> &mut CommodityStore<'ctx>
pub fn commodity_store_mut(&mut self) -> &mut CommodityStore<'ctx>
Returns mut CommodityStore.
Auto Trait Implementations§
impl<'ctx> Freeze for ReportContext<'ctx>
impl<'ctx> !RefUnwindSafe for ReportContext<'ctx>
impl<'ctx> !Send for ReportContext<'ctx>
impl<'ctx> !Sync for ReportContext<'ctx>
impl<'ctx> Unpin for ReportContext<'ctx>
impl<'ctx> !UnwindSafe for ReportContext<'ctx>
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