Struct tiff_encoder::tiff_type::ASCII[][src]

pub struct ASCII(_);

8-bit byte that contains a 7-bit ASCII code.

According the TIFF specification, the last byte of a field of ASCIIs must be NUL (binary zero, '\0').

Methods

impl ASCII
[src]

Constructs a TiffTypeValues of ASCIIs from a &str.

If the string doesn't already end with a NUL value, it will be added automatically.

Constructs a TiffTypeValues of ASCIIs from a vector of bytes.

If last value isn't already a NUL value, a NUL value will be added automatically after the last value.

Creates an ASCIIs value from a byte.

Panics

An ASCII value only uses 7 bytes. Trying to create an ASCII from values bigger than 127 will panic.

Trait Implementations

impl TiffType for ASCII
[src]

The TIFF 16-bit code that identifies the type.

The number of bytes occupied by a single value of this type.

The function that writes this type to a given [EndianFile]. Read more

Auto Trait Implementations

impl Send for ASCII

impl Sync for ASCII