use super::*;
pub trait StyleApply {
fn apply_in_place(self, style: &mut Style);
#[must_use]
#[inline(always)]
fn into_base_style(self) -> Style
where
Self: Sized,
{
let mut style: Style = Style::default();
self.apply_in_place(&mut style);
style
}
#[must_use]
#[inline(always)]
fn apply_to(self, mut style: Style) -> Style
where
Self: Sized,
{
self.apply_in_place(&mut style);
style
}
}