I follow the example as bellow
use stylist::Style;
let style = Style::new("background-color: red;")?;
the error is:
the trait bound StyleSource: From<&str> is not satisfied
the trait From<Sheet> is implemented for StyleSource
required for &str to implement Into<StyleSource>
required for StyleSource to implement TryFrom<&str>
The example shown in the "Runtime Style" section of the README depends on enabling the parser feature. I suppose this should be made clear. Prefer the macros generally, due to lower runtime overhead.
I follow the example as bellow use stylist::Style;
let style = Style::new("background-color: red;")?;
the error is:
the trait bound
StyleSource: From<&str>
is not satisfied the traitFrom<Sheet>
is implemented forStyleSource
required for&str
to implementInto<StyleSource>
required forStyleSource
to implementTryFrom<&str>