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
sourceimpl 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
sourceimpl<'a> Debug for PreviewImage<'a>
impl<'a> Debug for PreviewImage<'a>
sourceimpl<'a> PartialEq<PreviewImage<'a>> for PreviewImage<'a>
impl<'a> PartialEq<PreviewImage<'a>> for PreviewImage<'a>
sourcefn eq(&self, other: &PreviewImage<'a>) -> bool
fn eq(&self, other: &PreviewImage<'a>) -> bool
impl<'a> Eq for PreviewImage<'a>
impl<'a> StructuralEq for PreviewImage<'a>
impl<'a> StructuralPartialEq for PreviewImage<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for PreviewImage<'a>
impl<'a> !Send for PreviewImage<'a>
impl<'a> !Sync for PreviewImage<'a>
impl<'a> Unpin for PreviewImage<'a>
impl<'a> UnwindSafe for PreviewImage<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more