Struct gif::AnyExtension
source · pub struct AnyExtension(pub u8);
Expand description
A newtype wrapper around an arbitrary extension ID.
An extension is some amount of byte data organized in sub-blocks so that one can skip over it
without knowing the semantics. Though technically you likely want to use a Application
extension, the library tries to stay flexible here.
This allows us to customize the set of impls compared to a raw u8
. It also clarifies the
intent and gives some inherent methods for interoperability with known extension types.
Tuple Fields§
§0: u8
Implementations§
source§impl AnyExtension
impl AnyExtension
sourcepub fn into_known(self) -> Option<Extension>
pub fn into_known(self) -> Option<Extension>
Decode the label as a known extension.
Trait Implementations§
source§impl Clone for AnyExtension
impl Clone for AnyExtension
source§fn clone(&self) -> AnyExtension
fn clone(&self) -> AnyExtension
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more