Struct lottieconv::Converter
source · pub struct Converter<C: Convert> { /* private fields */ }
Expand description
This type is used to perform the conversion. It does nothing unless you
call .convert()
.
Implementations§
source§impl<C: Convert> Converter<C>
impl<C: Convert> Converter<C>
sourcepub fn convert(self) -> Result<C::Out, C::Err>
pub fn convert(self) -> Result<C::Out, C::Err>
Convert lottie animation to the requested format.
The return type of this function depends on the output format. For webp, it
returns the image data (WebPData
). For gif, it
returns ()
as the data is written directly to the writer that was passed
to the .gif(..)
function.
Auto Trait Implementations§
impl<C> RefUnwindSafe for Converter<C>where C: RefUnwindSafe,
impl<C> !Send for Converter<C>
impl<C> !Sync for Converter<C>
impl<C> Unpin for Converter<C>where C: Unpin,
impl<C> UnwindSafe for Converter<C>where C: 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