pub struct TransformReport {
pub music: Music,
pub diagnostics: Vec<TransformDiagnostic>,
}Expand description
Result of a transform: the produced music plus any diagnostics raised.
Fields§
§music: MusicThe transformed musical material.
diagnostics: Vec<TransformDiagnostic>Diagnostics gathered while producing Self::music.
Implementations§
Source§impl TransformReport
impl TransformReport
Sourcepub fn with_diagnostic(music: Music, diagnostic: TransformDiagnostic) -> Self
pub fn with_diagnostic(music: Music, diagnostic: TransformDiagnostic) -> Self
Wraps music with a single diagnostic.
Sourcepub fn has_diagnostics(&self) -> bool
pub fn has_diagnostics(&self) -> bool
Returns whether the report carries any diagnostics.
Trait Implementations§
Source§impl Clone for TransformReport
impl Clone for TransformReport
Source§fn clone(&self) -> TransformReport
fn clone(&self) -> TransformReport
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for TransformReport
impl !UnwindSafe for TransformReport
impl Freeze for TransformReport
impl Send for TransformReport
impl Sync for TransformReport
impl Unpin for TransformReport
impl UnsafeUnpin for TransformReport
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