pub enum ImageOrientation {
Identity,
Rotate90,
Rotate180,
Rotate270,
FlipHorizontal,
FlipVertical,
Rotate90FlipHorizontal,
Rotate270FlipHorizontal,
}Expand description
Orientation normalized from raster EXIF metadata.
Variants§
Identity
Rotate90
Rotate180
Rotate270
FlipHorizontal
FlipVertical
Rotate90FlipHorizontal
Rotate270FlipHorizontal
Implementations§
Source§impl ImageOrientation
impl ImageOrientation
pub fn swaps_dimensions(self) -> bool
Trait Implementations§
Source§impl Clone for ImageOrientation
impl Clone for ImageOrientation
Source§fn clone(&self) -> ImageOrientation
fn clone(&self) -> ImageOrientation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImageOrientation
Source§impl Debug for ImageOrientation
impl Debug for ImageOrientation
Source§impl Default for ImageOrientation
impl Default for ImageOrientation
Source§fn default() -> ImageOrientation
fn default() -> ImageOrientation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageOrientation
impl<'de> Deserialize<'de> for ImageOrientation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ImageOrientation
Source§impl From<Orientation> for ImageOrientation
impl From<Orientation> for ImageOrientation
Source§fn from(value: Orientation) -> Self
fn from(value: Orientation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImageOrientation
impl PartialEq for ImageOrientation
Source§impl Serialize for ImageOrientation
impl Serialize for ImageOrientation
impl StructuralPartialEq for ImageOrientation
Auto Trait Implementations§
impl Freeze for ImageOrientation
impl RefUnwindSafe for ImageOrientation
impl Send for ImageOrientation
impl Sync for ImageOrientation
impl Unpin for ImageOrientation
impl UnsafeUnpin for ImageOrientation
impl UnwindSafe for ImageOrientation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.