Struct jpng::footer::JpngFooter [−][src]
pub struct JpngFooter { pub image_size: u32, pub mask_size: u32, pub major_version: u8, pub minor_version: u8, // some fields omitted }
Fields
image_size: u32
mask_size: u32
major_version: u8
minor_version: u8
Methods
impl JpngFooter
[src]
impl JpngFooter
pub fn new(data: &[u8]) -> Result<Self, Error>
[src]
pub fn new(data: &[u8]) -> Result<Self, Error>
pub fn default() -> Self
[src]
pub fn default() -> Self
Gives a default representation of a JpngFooter.
Footer size is automatically set to the size of the struct, the major_version is set to 1 since it is the minimum version, and the identifier is set to its expected value.
pub fn version(&self) -> String
[src]
pub fn version(&self) -> String
Gives a string representation of the version as declared by the footer. For example, "1.0".
pub fn image_range(&self) -> Range<usize>
[src]
pub fn image_range(&self) -> Range<usize>
Gives the range that the image component is in.
pub fn mask_range(&self) -> Range<usize>
[src]
pub fn mask_range(&self) -> Range<usize>
Gives the range that the mask component is in.
Trait Implementations
impl Copy for JpngFooter
[src]
impl Copy for JpngFooter
impl Clone for JpngFooter
[src]
impl Clone for JpngFooter
fn clone(&self) -> JpngFooter
[src]
fn clone(&self) -> JpngFooter
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for JpngFooter
[src]
impl Debug for JpngFooter
Auto Trait Implementations
impl Send for JpngFooter
impl Send for JpngFooter
impl Sync for JpngFooter
impl Sync for JpngFooter