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]
impl ASCIIpub fn from_str(s: &str) -> TiffTypeValues<ASCII>[src]
pub fn from_str(s: &str) -> TiffTypeValues<ASCII>Constructs a TiffTypeValues of ASCIIs from a &str.
If the string doesn't already end with a NUL value, it will
be added automatically.
pub fn values(values: Vec<u8>) -> TiffTypeValues<ASCII>[src]
pub fn values(values: Vec<u8>) -> TiffTypeValues<ASCII>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.
pub fn new(value: u8) -> ASCII[src]
pub fn new(value: u8) -> ASCIICreates 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.