1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! General-use types and traits from this crate.
//!
//! This module contains the most used types, type aliases, traits,
//! functions and macros for glob import.
//!
//! # Example
//!
//! ```rust
//! use pica_record::prelude::*;
//!
//! let record = ByteRecord::from_bytes(b"002@ \x1f0Olfo\x1e\n")?;
//! assert!(record.validate().is_ok());
//!
//! # Ok::<(), Box<dyn std::error::Error>>(())
//! ```

pub use crate::matcher::field::FieldMatcher;
pub use crate::matcher::subfield::SubfieldMatcher;
pub use crate::matcher::{
    MatcherOptions, OccurrenceMatcher, RecordMatcher, TagMatcher,
};
pub use crate::{ByteRecord, Error, StringRecord};