pub struct RichTextSegment {
pub text: String,
pub facet: Option<Facet>,
}Expand description
A segment of rich text — either plain or annotated.
Fields§
§text: String§facet: Option<Facet>Implementations§
Trait Implementations§
Source§impl Clone for RichTextSegment
impl Clone for RichTextSegment
Source§fn clone(&self) -> RichTextSegment
fn clone(&self) -> RichTextSegment
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 moreAuto Trait Implementations§
impl Freeze for RichTextSegment
impl RefUnwindSafe for RichTextSegment
impl Send for RichTextSegment
impl Sync for RichTextSegment
impl Unpin for RichTextSegment
impl UnsafeUnpin for RichTextSegment
impl UnwindSafe for RichTextSegment
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