mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-12 20:23:35 +00:00
Allow SelectView::with_all to accept StyledString (#385)
This commit is contained in:
parent
1404226c33
commit
ae7a0090ff
@ -343,7 +343,7 @@ impl<T: 'static> SelectView<T> {
|
|||||||
/// Chainable variant.
|
/// Chainable variant.
|
||||||
pub fn with_all<S, I>(self, iter: I) -> Self
|
pub fn with_all<S, I>(self, iter: I) -> Self
|
||||||
where
|
where
|
||||||
S: Into<String>,
|
S: Into<StyledString>,
|
||||||
I: IntoIterator<Item = (S, T)>,
|
I: IntoIterator<Item = (S, T)>,
|
||||||
{
|
{
|
||||||
self.with(|s| s.add_all(iter))
|
self.with(|s| s.add_all(iter))
|
||||||
|
Loading…
Reference in New Issue
Block a user