Debian Codegraph @

src/lib.rs

raw symbols SCIP
1
2
3 //! Read and write OpenEXR images.
4 //! This library uses no foreign code or unsafe Rust.
5 //!
6 //! See the [README.md](https://github.com/johannesvollmer/exrs/blob/master/README.md) for crate information.
7 //! Read __the [GUIDE.md](https://github.com/johannesvollmer/exrs/blob/master/GUIDE.md) for a API introduction__.
8 //! Check out the [examples](https://github.com/johannesvollmer/exrs/tree/master/examples) for a first impression.
9
10 #![warn(
11 rust_2018_idioms,
12 future_incompatible,
13 unused_extern_crates,
14 unused,
15
16 missing_copy_implementations,
17 missing_debug_implementations,
18
19 clippy::all,
20 clippy::restriction,
21 clippy::pedantic,
22 clippy::nursery,
23 clippy::cargo,
24 )]
25
26 #![deny(
27 unused_variables,
28 unused_assignments,
29 dead_code,
30 unused_must_use,
31 missing_copy_implementations,
32 trivial_numeric_casts,
33 redundant_semicolons
34 )]
35
36 #![forbid(unsafe_code)]
37 #![warn(missing_docs)]
38
39 pub mod iorust-analyzer cargo exr 1.74.0 io/; // public to allow for custom attribute byte parsing
40
41 pub mod mathrust-analyzer cargo exr 1.74.0 math/;
42 pub mod compressionrust-analyzer cargo exr 1.74.0 compression/;
43 pub mod metarust-analyzer cargo exr 1.74.0 meta/;
44 pub mod imagerust-analyzer cargo exr 1.74.0 image/;
45
46 pub mod errorrust-analyzer cargo exr 1.74.0 error/;
47 pub mod blockrust-analyzer cargo exr 1.74.0 block/;
48
49 #[macro_use]
50 extern crate smallvecrust-analyzer cargo exr 1.74.0 smallvec/;
51
52 /// Export the most important items from `exrs`.
53 /// _Note: This includes a type called `Result`, possibly overwriting the default `std::Result` type usage._
54 pub mod preluderust-analyzer cargo exr 1.74.0 prelude/ {
55
56 /// Import this specifically if you want to be explicit but still use the extension traits.
57 pub mod traitsrust-analyzer cargo exr 1.74.0 prelude/traits/ {
58 pub use craterust-analyzer cargo exr 1.74.0 crate/::imagerust-analyzer cargo exr 1.74.0 image/::writerust-analyzer cargo exr 1.74.0 image/write/::{WritableImagerust-analyzer cargo exr 1.74.0 image/write/WritableImage#, channelsrust-analyzer cargo exr 1.74.0 image/write/channels/::GetPixelrust-analyzer cargo exr 1.74.0 image/write/channels/GetPixel#};
59 pub use craterust-analyzer cargo exr 1.74.0 crate/::imagerust-analyzer cargo exr 1.74.0 image/::readrust-analyzer cargo exr 1.74.0 image/read/::{
60 readrust-analyzer cargo exr 1.74.0 image/read/read()., any_channelsrust-analyzer cargo exr 1.74.0 image/read/any_channels/::ReadSamplesrust-analyzer cargo exr 1.74.0 image/read/any_channels/ReadSamples#, imagerust-analyzer cargo exr 1.74.0 image/read/image/::ReadLayersrust-analyzer cargo exr 1.74.0 image/read/image/ReadLayers#,
61 imagerust-analyzer cargo exr 1.74.0 image/read/image/::ReadImagerust-analyzer cargo exr 1.74.0 image/read/image/ReadImage#, layersrust-analyzer cargo exr 1.74.0 image/read/layers/::ReadChannelsrust-analyzer cargo exr 1.74.0 image/read/layers/ReadChannels#,
62 specific_channelsrust-analyzer cargo exr 1.74.0 image/read/specific_channels/::{ReadSpecificChannelrust-analyzer cargo exr 1.74.0 image/read/specific_channels/ReadSpecificChannel#}
63 };
64
65 pub use craterust-analyzer cargo exr 1.74.0 crate/::imagerust-analyzer cargo exr 1.74.0 image/::croprust-analyzer cargo exr 1.74.0 image/crop/::{Croprust-analyzer cargo exr 1.74.0 image/crop/Crop#, CropWhererust-analyzer cargo exr 1.74.0 image/crop/CropWhere#, CropResultrust-analyzer cargo exr 1.74.0 image/crop/CropResult#, InspectSamplerust-analyzer cargo exr 1.74.0 image/crop/InspectSample#, CroppedChannelsrust-analyzer cargo exr 1.74.0 image/crop/CroppedChannels#, ApplyCroppedViewrust-analyzer cargo exr 1.74.0 image/crop/ApplyCroppedView#};
66 }
67
68 pub use traitsrust-analyzer cargo exr 1.74.0 prelude/traits/::*;
69
70 pub use craterust-analyzer cargo exr 1.74.0 crate/::imagerust-analyzer cargo exr 1.74.0 image/::writerust-analyzer cargo exr 1.74.0 image/write/::{write_rgb_filerust-analyzer cargo exr 1.74.0 image/write/write_rgb_file()., write_rgba_filerust-analyzer cargo exr 1.74.0 image/write/write_rgba_file().};
71 pub use craterust-analyzer cargo exr 1.74.0 crate/::imagerust-analyzer cargo exr 1.74.0 image/::readrust-analyzer cargo exr 1.74.0 image/read/::{
72 read_first_rgba_layer_from_filerust-analyzer cargo exr 1.74.0 image/read/read_first_rgba_layer_from_file().,
73 read_all_rgba_layers_from_filerust-analyzer cargo exr 1.74.0 image/read/read_all_rgba_layers_from_file().,
74 read_all_data_from_filerust-analyzer cargo exr 1.74.0 image/read/read_all_data_from_file().,
75 read_all_flat_layers_from_filerust-analyzer cargo exr 1.74.0 image/read/read_all_flat_layers_from_file().,
76 read_first_flat_layer_from_filerust-analyzer cargo exr 1.74.0 image/read/read_first_flat_layer_from_file().
77 };
78
79 // image data structures
80 pub use craterust-analyzer cargo exr 1.74.0 crate/::imagerust-analyzer cargo exr 1.74.0 image/::*;
81 pub use craterust-analyzer cargo exr 1.74.0 crate/::metarust-analyzer cargo exr 1.74.0 meta/::{ attributerust-analyzer cargo exr 1.74.0 meta/attribute/, MetaDatarust-analyzer cargo exr 1.74.0 meta/MetaData#, headerrust-analyzer cargo exr 1.74.0 meta/header/::{ LayerAttributesrust-analyzer cargo exr 1.74.0 meta/header/LayerAttributes#, ImageAttributesrust-analyzer cargo exr 1.74.0 meta/header/ImageAttributes# } };
82 pub use craterust-analyzer cargo exr 1.74.0 crate/::blockrust-analyzer cargo exr 1.74.0 block/::samplesrust-analyzer cargo exr 1.74.0 block/samples/::Samplerust-analyzer cargo exr 1.74.0 block/samples/Sample#;
83 pub use craterust-analyzer cargo exr 1.74.0 crate/::metarust-analyzer cargo exr 1.74.0 meta/::attributerust-analyzer cargo exr 1.74.0 meta/attribute/::{
84 AttributeValuerust-analyzer cargo exr 1.74.0 meta/attribute/AttributeValue#, Compressionrust-analyzer cargo exr 1.74.0 compression/Compression#, Textrust-analyzer cargo exr 1.74.0 meta/attribute/Text#, IntegerBoundsrust-analyzer cargo exr 1.74.0 meta/attribute/IntegerBounds#,
85 LineOrderrust-analyzer cargo exr 1.74.0 meta/attribute/LineOrder#, SampleTyperust-analyzer cargo exr 1.74.0 meta/attribute/SampleType#, TileDescriptionrust-analyzer cargo exr 1.74.0 meta/attribute/TileDescription#, ChannelDescriptionrust-analyzer cargo exr 1.74.0 meta/attribute/ChannelDescription#
86 };
87
88 // common math
89 pub use craterust-analyzer cargo exr 1.74.0 crate/::mathrust-analyzer cargo exr 1.74.0 math/::Vec2rust-analyzer cargo exr 1.74.0 math/Vec2#;
90
91 // error handling
92 pub use craterust-analyzer cargo exr 1.74.0 crate/::errorrust-analyzer cargo exr 1.74.0 error/::{ Resultrust-analyzer cargo exr 1.74.0 error/Result#, Errorrust-analyzer cargo exr 1.74.0 error/Error# };
93
94 // re-export external stuff
95 pub use halfrust-analyzer cargo half 2.6.0 crate/::f16rust-analyzer cargo half 2.6.0 binary16/f16#;
96 pub use smallvecrust-analyzer cargo smallvec 1.15.1 crate/::SmallVecrust-analyzer cargo smallvec 1.15.1 SmallVec#;
97 }
98
99
100