pub struct Registry { /* private fields */ }Expand description
Registry of decoders keyed by BoxKey (4CC or UUID).
The registry is immutable once constructed; use Registry::with_decoder
to build it fluently.
Implementations§
Source§impl Registry
impl Registry
Sourcepub fn with_decoder(
self,
key: BoxKey,
name: &str,
dec: Box<dyn BoxDecoder>,
) -> Self
pub fn with_decoder( self, key: BoxKey, name: &str, dec: Box<dyn BoxDecoder>, ) -> Self
Return a new registry with the given decoder added.
name is human-readable and used only for debugging / logging.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registry
impl !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
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