pub struct AnnotatedString {
pub text: String,
pub spans: Arc<[TextSpan]>,
}Expand description
Text with multiple styled spans.
Analogous to Compose’s AnnotatedString.
Fields§
§text: String§spans: Arc<[TextSpan]>Implementations§
Trait Implementations§
Source§impl Clone for AnnotatedString
impl Clone for AnnotatedString
Source§fn clone(&self) -> AnnotatedString
fn clone(&self) -> AnnotatedString
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotatedString
impl Debug for AnnotatedString
Source§impl From<&str> for AnnotatedString
impl From<&str> for AnnotatedString
Auto Trait Implementations§
impl Freeze for AnnotatedString
impl RefUnwindSafe for AnnotatedString
impl Send for AnnotatedString
impl Sync for AnnotatedString
impl Unpin for AnnotatedString
impl UnsafeUnpin for AnnotatedString
impl UnwindSafe for AnnotatedString
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