pub struct VisualComparison { /* private fields */ }Expand description
Visual comparison renderer
Implementations§
Source§impl VisualComparison
impl VisualComparison
pub fn new(width: u32, height: u32) -> Self
Sourcepub fn render_with_debug(
&mut self,
script: &Script<'_>,
_time_ms: u32,
) -> Result<Pixmap, RenderError>
pub fn render_with_debug( &mut self, script: &Script<'_>, _time_ms: u32, ) -> Result<Pixmap, RenderError>
Render with debug overlay
Sourcepub fn export_debug_info(&self, path: &Path) -> Result<(), RenderError>
pub fn export_debug_info(&self, path: &Path) -> Result<(), RenderError>
Export debug info to file
Sourcepub fn compare_with_libass(
&self,
our_output: &Pixmap,
libass_output: &Pixmap,
) -> ComparisonResult
pub fn compare_with_libass( &self, our_output: &Pixmap, libass_output: &Pixmap, ) -> ComparisonResult
Compare with libass output
Auto Trait Implementations§
impl Freeze for VisualComparison
impl RefUnwindSafe for VisualComparison
impl Send for VisualComparison
impl Sync for VisualComparison
impl Unpin for VisualComparison
impl UnsafeUnpin for VisualComparison
impl UnwindSafe for VisualComparison
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more