Struct beancount_parser_lima::types::ErrorOrWarning
source · pub struct ErrorOrWarning<K>where
K: ErrorOrWarningKind,{ /* private fields */ }Expand description
Error or warning, according to the marker type with which it is instantiated.
Implementations§
source§impl<K> ErrorOrWarning<K>where
K: ErrorOrWarningKind,
impl<K> ErrorOrWarning<K>where
K: ErrorOrWarningKind,
Annotate an error or warning as being related to another parsed element.
Annotate an error or warning as being related to a number of parsed elements.
sourcepub fn in_context<T>(self, element: &Spanned<T>) -> Selfwhere
T: ElementType,
pub fn in_context<T>(self, element: &Spanned<T>) -> Selfwhere
T: ElementType,
Annotate an error or warning as being in the context of another parsed elememt, for example an error on a Posting being in the context of its Transaction.
Trait Implementations§
source§impl<K> Clone for ErrorOrWarning<K>where
K: ErrorOrWarningKind + Clone,
impl<K> Clone for ErrorOrWarning<K>where
K: ErrorOrWarningKind + Clone,
source§fn clone(&self) -> ErrorOrWarning<K>
fn clone(&self) -> ErrorOrWarning<K>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<K> RefUnwindSafe for ErrorOrWarning<K>where
K: RefUnwindSafe,
impl<K> Send for ErrorOrWarning<K>where
K: Send,
impl<K> Sync for ErrorOrWarning<K>where
K: Sync,
impl<K> Unpin for ErrorOrWarning<K>where
K: Unpin,
impl<K> UnwindSafe for ErrorOrWarning<K>where
K: 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