pub struct SpanStr<'a> {
pub text: &'a str,
pub style: Style,
}Expand description
Text with a uniform [Style] attached to it. Returned by the StyledStr::spans() iterator.
Fields§
§text: &'a strUnstyled text.
style: StyleStyle applied to the text.
Implementations§
Trait Implementations§
impl<'a> Copy for SpanStr<'a>
impl<'a> StructuralPartialEq for SpanStr<'a>
Auto Trait Implementations§
impl<'a> Freeze for SpanStr<'a>
impl<'a> RefUnwindSafe for SpanStr<'a>
impl<'a> Send for SpanStr<'a>
impl<'a> Sync for SpanStr<'a>
impl<'a> Unpin for SpanStr<'a>
impl<'a> UnwindSafe for SpanStr<'a>
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