1 2 3 4 5 6 7 8 9
#![warn(missing_docs)] use crate::Style; /// A trait to convert a type into a [`Style`]. pub trait ToStyle: Into<Style> { /// Converts the type into a [`Style`]. #[must_use] fn to_style(self) -> Style; }