Struct rexiv2::PreviewImage
source · pub struct PreviewImage<'a> { /* private fields */ }
Expand description
An opaque structure that serves as a container for a preview image.
Implementations§
source§impl PreviewImage<'_>
impl PreviewImage<'_>
sourcepub fn get_height(&self) -> u32
pub fn get_height(&self) -> u32
Return the height of the preview image.
sourcepub fn get_media_type(&self) -> Result<MediaType>
pub fn get_media_type(&self) -> Result<MediaType>
Return the media type of the preview image.
sourcepub fn get_extension(&self) -> Result<String>
pub fn get_extension(&self) -> Result<String>
Return the preview image’s recommended file extension.
Trait Implementations§
source§impl<'a> Debug for PreviewImage<'a>
impl<'a> Debug for PreviewImage<'a>
source§impl<'a> PartialEq<PreviewImage<'a>> for PreviewImage<'a>
impl<'a> PartialEq<PreviewImage<'a>> for PreviewImage<'a>
source§fn eq(&self, other: &PreviewImage<'a>) -> bool
fn eq(&self, other: &PreviewImage<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.