pub struct Span<'a, T: Clone> { /* private fields */ }Expand description
A span of text having a single style.
Implementations§
Trait Implementations§
Source§impl<'a, T: Clone> BoundedWidth for Span<'a, T>
impl<'a, T: Clone> BoundedWidth for Span<'a, 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: Clone> Expandable for Span<'a, T>
impl<'a, T: Clone> Expandable for Span<'a, T>
Source§impl<'a, T> FromIterator<Span<'a, T>> for Spans<T>
impl<'a, T> FromIterator<Span<'a, T>> for Spans<T>
impl<'a, T: Clone> StructuralPartialEq for Span<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Span<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Span<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Span<'a, T>
impl<'a, T> Sync for Span<'a, T>where
T: Sync,
impl<'a, T> Unpin for Span<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Span<'a, T>where
T: UnwindSafe + 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<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