pub struct Spans<T> { /* private fields */ }Expand description
A string with various styles applied to the span. Styles do not not cascade. Only the most recent style applies to the current character.
Implementations§
Trait Implementations§
Source§impl<T> BoundedWidth for Spans<T>
impl<T> BoundedWidth for Spans<T>
Source§fn bounded_width(&self) -> usize
fn bounded_width(&self) -> usize
Return the finite unicode width of an object Read more
Source§impl<'a, T> FromIterator<Span<'a, T>> for Spans<T>
impl<'a, T> FromIterator<Span<'a, T>> for Spans<T>
Source§impl<'a, T, U> FromIterator<U> for Spans<T>
impl<'a, T, U> FromIterator<U> for Spans<T>
impl<T: PartialEq> Eq for Spans<T>
Auto Trait Implementations§
impl<T> Freeze for Spans<T>
impl<T> RefUnwindSafe for Spans<T>where
T: RefUnwindSafe,
impl<T> Send for Spans<T>where
T: Send,
impl<T> Sync for Spans<T>where
T: Sync,
impl<T> Unpin for Spans<T>
impl<T> UnwindSafe for Spans<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> Replaceable<&'a T> for T
impl<'a, T> Replaceable<&'a T> for T
Source§impl<T> WidthSliceable for T
impl<T> WidthSliceable for T
type Output = T
Source§fn slice_width<R>(&self, range: R) -> Option<<T as WidthSliceable>::Output>where
R: RangeBounds<usize>,
fn slice_width<R>(&self, range: R) -> Option<<T as WidthSliceable>::Output>where
R: RangeBounds<usize>,
Slice an object by width rather than by bytes. Read more