pub struct CodecId {
pub id: &'static str,
}Expand description
A stable identifier for one codec implementation, in "{format}/{impl}" form.
For example "jpeg/mozjpeg" or "avif/ravif". The string is stable across
releases, so callers may use it as part of a cache key.
Only Serialize is derived: the &'static str is
discovered at runtime by enumerating compiled codecs, never deserialized.
Fields§
§id: &'static strThe "{format}/{impl}" identifier string.
Implementations§
Trait Implementations§
impl Copy for CodecId
impl Eq for CodecId
impl StructuralPartialEq for CodecId
Auto Trait Implementations§
impl Freeze for CodecId
impl RefUnwindSafe for CodecId
impl Send for CodecId
impl Sync for CodecId
impl Unpin for CodecId
impl UnsafeUnpin for CodecId
impl UnwindSafe for CodecId
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