pub trait DecodedHandle: Clone {
    type BackendHandle;

    fn handle_rc(&self) -> &Rc<RefCell<Self::BackendHandle>>;
    fn display_order(&self) -> Option<u64>;
    fn set_display_order(&mut self, display_order: u64);
    fn timestamp(&self) -> u64;
    fn display_resolution(&self) -> Resolution;

    fn handle(&self) -> Ref<'_, Self::BackendHandle> { ... }
    fn handle_mut(&self) -> RefMut<'_, Self::BackendHandle> { ... }
}
Expand description

The handle type used by the stateless decoder backend. The only requirement from implementors is that they give access to the underlying handle and that they can be (cheaply) cloned.

Required Associated Types

The type of the handle used by the backend.

Required Methods

Returns a reference to the container of the backend handle.

Returns the display order for the picture backed by this handle, if set by the decoder.

Sets the display order for the picture backend by this handle

Returns the timestamp of the picture.

Returns the display resolution at the time this handle was decoded.

Provided Methods

Returns a shared reference to the backend handle.

Returns a mutable reference to the backend handle.

Implementors