pub struct Writer { /* private fields */ }
Expand description
Perform GIF writing
Implementations
sourceimpl Writer
impl Writer
Encode collected frames
sourcepub fn write<W: Write>(
self,
writer: W,
reporter: &mut dyn ProgressReporter
) -> CatResult<()>
pub fn write<W: Write>(
self,
writer: W,
reporter: &mut dyn ProgressReporter
) -> CatResult<()>
Start writing frames. This function will not return until Collector
is dropped.
outfile
can be any writer, such as File
or &mut Vec
.
ProgressReporter.increase()
is called each time a new frame is being written.
Auto Trait Implementations
impl !RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl !UnwindSafe for Writer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more