bdaddr/lib.rs
1#![doc(html_root_url = "https://docs.rs/bdaddr/0.1.2")]
2//! Bluetooth Device Address.
3//!
4//! ## Dependencies
5//!
6//! ```toml
7//! [dependencies]
8//! bdaddr = "0.1"
9//! ```
10//!
11//! ## Example
12//!
13//! ```
14//! use bdaddr::Address;
15//!
16//! fn main() {
17//! let addr = "00:11:22:33:44:55".parse::<Address>().unwrap();
18//! assert_eq!(addr.to_string(), "00:11:22:33:44:55");
19//! }
20//! ```
21//!
22//! ## License
23//!
24//! Licensed under either of
25//! * Apache License, Version 2.0
26//! ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
27//! * MIT license
28//! ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
29//! at your option.
30//!
31//! ## Contribution
32//!
33//! Unless you explicitly state otherwise, any contribution intentionally submitted
34//! for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
35//! dual licensed as above, without any additional terms or conditions.!
36#[cfg(feature = "matches")]
37pub use addr::InvalidAddressType;
38pub use addr::{Address, AddressParseError};
39
40mod addr;