posthog-symbol-data 0.5.0

A shared library for serialising/deserialising PostHog symbol data
Documentation
1
2
3
4
5
6
7
8
9
use crate::error::Error;

pub fn assert_at_least_as_long_as(expected: usize, actual: usize) -> Result<(), Error> {
    if expected <= actual {
        Ok(())
    } else {
        Err(Error::DataTooShort(expected as u64, actual as u64))
    }
}