[−][src]Module tiff_encoder::prelude
Common imports that are necessary for almost every use of the tiff_encoder
library.
Usage
use tiff_encoder::prelude::*;
Other common imports
The following imports, although also often used for this library, are not included in the prelude to avoid polluting the user's namespace.
use tiff_encoder::write; // Helpers to write data to the file, particularly `Datablock` use tiff_encoder::ifd::tags; // Constants for common tags in IFD entries
Note that macro_rules!
for using ifd::types
cannot (unfortunately) be re-exported
in the prelude. This means you'll either have to explicitely import them or use #[macro_use]
.
// Either #[macro_use] extern crate tiff_encoder; // Or use tiff_encoder::{ ASCII, BYTE, DOUBLE, FLOAT, LONG, RATIONAL, SBYTE, SHORT, SLONG, SRATIONAL, SSHORT, UNDEFINED };
Re-exports
pub use crate::ifd::Ifd; |
pub use crate::ifd::IfdChain; |
pub use crate::write::ByteBlock; |
pub use crate::TiffFile; |