safebit 0.1.0

Safe and secure bit access into integer types
Documentation
//! Error types.

/// Error type for operations on words
#[derive(Debug, Clone, PartialEq)]
pub enum WordError {
    InvalidBounds,
}

/// Error type for operations on word streams
#[derive(Debug, Clone, PartialEq)]
pub enum SafebitStreamError<E> {
    ReadError(E),
    InvalidLength { bit_len: usize },
}

/// Error type for [Cursor](crate::word_read::Cursor) operations
#[derive(Debug, Clone, PartialEq)]
pub enum CursorError {
    EndOfCursor,
}