mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Have TextView::content take Into<StyledString>
This commit is contained in:
parent
5003095171
commit
51eb6bf34c
@ -287,7 +287,7 @@ impl TextView {
|
||||
/// Chainable variant.
|
||||
pub fn content<S>(self, content: S) -> Self
|
||||
where
|
||||
S: Into<String>,
|
||||
S: Into<StyledString>,
|
||||
{
|
||||
self.with(|s| s.set_content(content))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user