use core::fmt::{Display, Formatter, Result};
use crate::{Style, impl_macros::from_to::impl_from_to};
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
pub struct Reset;
impl_from_to!(
#[doc = r"Converts the type into a [`Style`]."]
fn to_style(self: Reset) -> Style {
Style::new()
}
);
impl Display for Reset {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
write!(f, "{}", Style::new())
}
}
impl PartialEq<Style> for Reset {
fn eq(&self, other: &Style) -> bool {
self.to_style() == *other
}
}