pub struct AnimatedImageProvider;Expand description
Reads GIF, animated WebP, and APNG. Still files of those formats are left to the host.
Trait Implementations§
Source§impl VisualProvider for AnimatedImageProvider
impl VisualProvider for AnimatedImageProvider
Source§fn probe(&self, bytes: &[u8]) -> Option<Result<ProbeReport, ExtensionError>>
fn probe(&self, bytes: &[u8]) -> Option<Result<ProbeReport, ExtensionError>>
Source§fn open(
&self,
bytes: Arc<[u8]>,
_source: &ProviderSource,
_resolver: &dyn ResourceResolver,
) -> Result<Box<dyn VisualSource>, ExtensionError>
fn open( &self, bytes: Arc<[u8]>, _source: &ProviderSource, _resolver: &dyn ResourceResolver, ) -> Result<Box<dyn VisualSource>, ExtensionError>
Opens
bytes as the project’s source, applying its settings. Open runs the same
signature checks as Self::probe, so callers need not probe first. Read moreAuto Trait Implementations§
impl Forget for AnimatedImageProvider
impl Freeze for AnimatedImageProvider
impl Move for AnimatedImageProvider
impl RefUnwindSafe for AnimatedImageProvider
impl Send for AnimatedImageProvider
impl Sync for AnimatedImageProvider
impl Unpin for AnimatedImageProvider
impl UnsafeUnpin for AnimatedImageProvider
impl UnwindSafe for AnimatedImageProvider
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