Struct immeta::formats::gif::ApplicationExtension
[−]
[src]
pub struct ApplicationExtension { pub application_identifier: [u8; 8], pub authentication_code: [u8; 3], }
Contains metadata for application extension block.
These blocks usually contain information about the application which was used to create the image.
Fields
application_identifier: [u8; 8]
Eight ASCII bytes of an application identifier.
authentication_code: [u8; 3]
Three bytes of an application authentication code.
Citing the GIF spec:
Sequence of three bytes used to authenticate the Application Identifier. An Application program may use an algorithm to compute a binary code that uniquely identifies it as the application owning the Application Extension.
Methods
impl ApplicationExtension
[src]
pub fn application_identifier_str(&self) -> Option<&str>
[src]
Returns application identifier as a UTF-8 string, if possible.
For correct images this method should always return Some
.
pub fn authentication_code_str(&self) -> Option<&str>
[src]
Returns authentication code as a UTF-8 string, if possible.
Trait Implementations
impl Clone for ApplicationExtension
[src]
fn clone(&self) -> ApplicationExtension
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ApplicationExtension
[src]
fn eq(&self, __arg_0: &ApplicationExtension) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ApplicationExtension) -> bool
[src]
This method tests for !=
.