Enum Tag

#[non_exhaustive]
#[repr(u16)]
pub enum Tag

TIFF tags

Variants

Artist = 315
BitsPerSample = 258
CellLength = 265
CellWidth = 264
ColorMap = 320
Compression = 259
DateTime = 306
ExtraSamples = 338
FillOrder = 266
FreeByteCounts = 289
FreeOffsets = 288
GrayResponseCurve = 291
GrayResponseUnit = 290
HostComputer = 316
ImageDescription = 270
ImageLength = 257
ImageWidth = 256
Make = 271
MaxSampleValue = 281
MinSampleValue = 280
Model = 272
NewSubfileType = 254
Orientation = 274
PhotometricInterpretation = 262
PlanarConfiguration = 284
ResolutionUnit = 296
RowsPerStrip = 278
SamplesPerPixel = 277
Software = 305
StripByteCounts = 279
StripOffsets = 273
SubfileType = 255
Threshholding = 263
XResolution = 282
YResolution = 283
Predictor = 317
TileWidth = 322
TileLength = 323
TileOffsets = 324
TileByteCounts = 325
SubIfd = 330
SampleFormat = 339
SMinSampleValue = 340
SMaxSampleValue = 341
JPEGTables = 347
ChromaSubsampling = 530
ChromaPositioning = 531
ModelPixelScaleTag = 33550
ModelTransformationTag = 34264
ModelTiepointTag = 33922
Copyright = 33_432
ExifDirectory = 0x8769
GpsDirectory = 0x8825
IccProfile = 34675
GeoKeyDirectoryTag = 34735
GeoDoubleParamsTag = 34736
GeoAsciiParamsTag = 34737
ExifVersion = 0x9000
GdalNodata = 42113
Unknown(u16)

A private or extension tag

Implementations

impl Tag

const fn from_u16(val: u16) -> Option<Self>
const fn from_u16_exhaustive(unknown: u16) -> Self
const fn to_u16(&self) -> u16

Trait Implementations

impl Clone for Tag

fn clone(&self) -> Self

impl Copy for Tag

impl Debug for Tag

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Tag

impl Hash for Tag

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for Tag

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for Tag

Auto Trait Implementations

impl Freeze for Tag

impl RefUnwindSafe for Tag

impl Send for Tag

impl Sync for Tag

impl Unpin for Tag

impl UnsafeUnpin for Tag

impl UnwindSafe for Tag

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Tag where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Tag where ST: ?Sized, DT: ?Sized,

impl<T> Any for Tag where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Tag where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Tag where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for Tag where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Tag

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Read<Exclusive, BecauseExclusive> for Tag where T: ?Sized,

impl<T> ToOwned for Tag where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for Tag where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Tag where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Tag where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>