use crate::cell::{CellBuilder, CellParser};
use num_traits::Zero;
use std::fmt::Display;
#[cfg(test)]
mod _ton_cell_num_tests;
mod ton_cell_bignum;
mod ton_cell_fastnum;
mod ton_cell_primitives;
use crate::errors::TonCoreResult;
pub trait TonCellNum: Display + Sized + Clone + Zero + PartialOrd {
fn tcn_write_bits(&self, writer: &mut CellBuilder, bits_len: usize) -> TonCoreResult<()>;
fn tcn_read_bits(reader: &mut CellParser, bits_len: usize) -> TonCoreResult<Self>;
fn tcn_min_bits_len(&self) -> usize;
}