use std::{
fmt::{Debug, Display},
str::FromStr,
};
pub(crate) mod ext_tek_hex;
pub(crate) mod ihex;
pub(crate) mod srec;
use crate::Error;
pub trait Record: FromStr + Debug + Display {
fn to_record_string(&self) -> Result<String, Error>;
fn to_pretty_record_string(&self) -> Result<String, Error>;
fn is_record_str_correct<S>(record_str: S) -> bool
where
S: AsRef<str>,
{
Self::from_record_string(record_str).is_ok()
}
fn from_record_string<S>(record_string: S) -> Result<Self, Error>
where
S: AsRef<str>;
}