pub struct HighlightedSegment {
pub text: String,
pub color: String,
pub bold: bool,
pub italic: bool,
}Expand description
A highlighted text segment with color
Fields§
§text: String§color: String§bold: bool§italic: boolTrait Implementations§
Source§impl Clone for HighlightedSegment
impl Clone for HighlightedSegment
Source§fn clone(&self) -> HighlightedSegment
fn clone(&self) -> HighlightedSegment
Returns a duplicate of the value. Read more
1.0.0 · 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 HighlightedSegment
impl RefUnwindSafe for HighlightedSegment
impl Send for HighlightedSegment
impl Sync for HighlightedSegment
impl Unpin for HighlightedSegment
impl UnwindSafe for HighlightedSegment
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