refix-message 0.4.2

Framing, tokenisation and raw message representation for the ReFIX engine
Documentation
mod date;
mod decimal;
mod error;
mod month_year;
mod time;
mod time_precision;
mod utc_timestamp;

pub use date::Date;
pub use decimal::Decimal;
pub use error::{InvalidValue, OutOfRange};
pub use month_year::MonthYear;
pub use time::Time;
pub use time_precision::TimePrecision;
pub use utc_timestamp::UtcTimestamp;

/// The value of `digits`, if they're all ASCII digits.
fn number(digits: &[u8]) -> Option<i64> {
    digits.iter().try_fold(0, |value, &byte| {
        byte.is_ascii_digit()
            .then(|| value * 10 + i64::from(byte - b'0'))
    })
}