pub struct RenderResult<T> {
pub output: T,
pub warnings: Vec<String>,
}Expand description
Result of a render operation, containing both the rendered output and any warnings produced during rendering.
Renderers collect warnings (e.g., transpose saturation, chorus recall
limits) into warnings instead of printing them
directly. Callers can inspect and display warnings as they see fit.
Fields§
§output: TThe rendered output.
warnings: Vec<String>Warnings emitted during rendering.
Implementations§
Source§impl<T> RenderResult<T>
impl<T> RenderResult<T>
Sourcepub fn with_warnings(output: T, warnings: Vec<String>) -> Self
pub fn with_warnings(output: T, warnings: Vec<String>) -> Self
Create a new RenderResult with the given output and warnings.
Sourcepub fn has_warnings(&self) -> bool
pub fn has_warnings(&self) -> bool
Returns true if there are no warnings.
Trait Implementations§
Source§impl<T: Clone> Clone for RenderResult<T>
impl<T: Clone> Clone for RenderResult<T>
Source§fn clone(&self) -> RenderResult<T>
fn clone(&self) -> RenderResult<T>
Returns a duplicate 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<T> Freeze for RenderResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for RenderResult<T>where
T: RefUnwindSafe,
impl<T> Send for RenderResult<T>where
T: Send,
impl<T> Sync for RenderResult<T>where
T: Sync,
impl<T> Unpin for RenderResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for RenderResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RenderResult<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