pub struct Spans<'a>(pub Vec<Span<'a>>);
Expand description
A string composed of clusters of graphemes, each with their own style.
Tuple Fields§
§0: Vec<Span<'a>>
Implementations§
Trait Implementations§
source§impl<'a> Extend<Spans<'a>> for Text<'a>
impl<'a> Extend<Spans<'a>> for Text<'a>
source§fn extend<T: IntoIterator<Item = Spans<'a>>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Spans<'a>>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more