[][src]Struct exif::In

pub struct In(pub u16);

The IFD number.

The IFDs are indexed from 0. The 0th IFD is for the primary image and the 1st one is for the thumbnail. Two associated constants, In::PRIMARY and In::THUMBNAIL, are defined for them respectively.

Examples

use exif::In;
assert_eq!(In::PRIMARY.index(), 0);
assert_eq!(In::THUMBNAIL.index(), 1);

Implementations

impl In[src]

pub const PRIMARY: In[src]

pub const THUMBNAIL: In[src]

pub fn index(self) -> u16[src]

Returns the IFD number.

Trait Implementations

impl Clone for In[src]

impl Copy for In[src]

impl Debug for In[src]

impl Display for In[src]

impl Eq for In[src]

impl Hash for In[src]

impl Ord for In[src]

impl PartialEq<In> for In[src]

impl PartialOrd<In> for In[src]

impl StructuralEq for In[src]

impl StructuralPartialEq for In[src]

Auto Trait Implementations

impl RefUnwindSafe for In[src]

impl Send for In[src]

impl Sync for In[src]

impl Unpin for In[src]

impl UnwindSafe for In[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.