pub struct HighlightedSegment {
pub style: Style,
pub text: String,
}Expand description
A syntax-highlighted text segment.
Keep field-compatible with the TUI variant vtcode_ui::tui::ui::markdown::HighlightedSegment.
Fields§
§style: Style§text: StringTrait Implementations§
Source§impl Clone for HighlightedSegment
impl Clone for HighlightedSegment
Auto Trait Implementations§
impl Forget for HighlightedSegment
impl Freeze for HighlightedSegment
impl Move for HighlightedSegment
impl RefUnwindSafe for HighlightedSegment
impl Send for HighlightedSegmentwhere
RawVecInner: Send,
impl Sync for HighlightedSegmentwhere
RawVecInner: Sync,
impl Unpin for HighlightedSegment
impl UnsafeUnpin for HighlightedSegment
impl UnwindSafe for HighlightedSegmentwhere
RawVecInner: UnwindSafe,
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