nd2_rs/lib.rs
1//! nd2-rs: Pure Rust library for reading Nikon ND2 microscopy files
2//!
3//! This library provides functionality to read metadata from modern ND2 files
4//! (versions 2.0, 2.1, and 3.0) created by Nikon NIS Elements software.
5//!
6//! # Example
7//! ```no_run
8//! use nd2_rs::Nd2File;
9//!
10//! fn main() -> nd2_rs::Result<()> {
11//! let mut nd2 = Nd2File::open("image.nd2")?;
12//!
13//! println!("Version: {:?}", nd2.version());
14//! println!("Attributes: {:#?}", nd2.attributes()?);
15//!
16//! Ok(())
17//! }
18//! ```
19
20pub mod error;
21pub mod types;
22
23mod chunk;
24mod constants;
25#[path = "metadata/mod.rs"]
26mod meta_parse;
27mod parse;
28mod reader;
29
30pub use error::{Nd2Error, Result};
31pub use reader::Nd2File;
32pub use types::*;