bitstring/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//! This crate provides traits to treat various objects as bit strings.
//!
//! ## Features
//!
//! - `fixed`: enables [`FixedBitString`] and [`fixed_bit_string`]
//! - `bigendian`: enables [`utils::BigEndianBitString`] and [`utils::bigendian`]
//! - `net`: implements [`FixedBitString`] for [`Ipv4Addr`] and [`Ipv6Addr`]
//!
//! [`Ipv4Addr`]: core::net::Ipv4Addr
//! [`Ipv6Addr`]: core::net::Ipv6Addr
#![warn(missing_docs)]
#![doc(html_root_url = "https://docs.rs/bitstring/0.2.0")]
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

pub use self::bit_string::BitString;

#[cfg(feature = "fixed")]
pub use self::{
	bit_length_string::BitLengthString,
	fixed_bit_string::traits::FixedBitString,
};

mod bit_string;

#[cfg(feature = "net")]
mod address;

pub mod utils;

#[cfg(feature = "fixed")]
mod bit_length_string;
#[cfg(feature = "fixed")]
pub mod fixed_bit_string;