pub struct IfdIndex(/* private fields */);Expand description
Index of an IFD (Image File Directory) within an EXIF blob.
0 = main image (IfdIndex::MAIN), 1 = thumbnail (IfdIndex::THUMBNAIL),
>=2 = sub-IFDs in the order encountered. Use the constants for the common
cases and IfdIndex::new for raw indexing.
Implementations§
Source§impl IfdIndex
impl IfdIndex
Sourcepub const fn new(index: usize) -> Self
pub const fn new(index: usize) -> Self
Construct from a raw index. 0/1 correspond to Self::MAIN /
Self::THUMBNAIL; values >= 2 are sub-IFDs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IfdIndex
impl<'de> Deserialize<'de> for IfdIndex
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
Source§impl Ord for IfdIndex
impl Ord for IfdIndex
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for IfdIndex
impl PartialOrd for IfdIndex
impl Copy for IfdIndex
impl Eq for IfdIndex
impl StructuralPartialEq for IfdIndex
Auto Trait Implementations§
impl Freeze for IfdIndex
impl RefUnwindSafe for IfdIndex
impl Send for IfdIndex
impl Sync for IfdIndex
impl Unpin for IfdIndex
impl UnsafeUnpin for IfdIndex
impl UnwindSafe for IfdIndex
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