pub struct NotationReport<T> {
pub value: T,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Result of a notation operation paired with any diagnostics produced.
Carries the converted value alongside the diagnostics gathered while
importing or exporting, so callers can inspect warnings without losing the
successful result.
Fields§
§value: TConverted value (an exported string or an imported Score).
diagnostics: Vec<Diagnostic>Diagnostics gathered during the operation.
Trait Implementations§
Source§impl<T: Clone> Clone for NotationReport<T>
impl<T: Clone> Clone for NotationReport<T>
Source§fn clone(&self) -> NotationReport<T>
fn clone(&self) -> NotationReport<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for NotationReport<T>
impl<T: Debug> Debug for NotationReport<T>
impl<T: Eq> Eq for NotationReport<T>
Source§impl<T: PartialEq> PartialEq for NotationReport<T>
impl<T: PartialEq> PartialEq for NotationReport<T>
Source§fn eq(&self, other: &NotationReport<T>) -> bool
fn eq(&self, other: &NotationReport<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: PartialEq> StructuralPartialEq for NotationReport<T>
Auto Trait Implementations§
impl<T> Freeze for NotationReport<T>where
T: Freeze,
impl<T> RefUnwindSafe for NotationReport<T>where
T: RefUnwindSafe,
impl<T> Send for NotationReport<T>where
T: Send,
impl<T> Sync for NotationReport<T>where
T: Sync,
impl<T> Unpin for NotationReport<T>where
T: Unpin,
impl<T> UnsafeUnpin for NotationReport<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NotationReport<T>where
T: 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