mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +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.
|
/// Chainable variant.
|
||||||
pub fn content<S>(self, content: S) -> Self
|
pub fn content<S>(self, content: S) -> Self
|
||||||
where
|
where
|
||||||
S: Into<String>,
|
S: Into<StyledString>,
|
||||||
{
|
{
|
||||||
self.with(|s| s.set_content(content))
|
self.with(|s| s.set_content(content))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user