pub struct StyledSegment<'a> {
pub range: Range<usize>,
pub style: Option<&'a StyleValue>,
pub is_selected: bool,
}Expand description
A contiguous segment of text on a line with its resolved style and selection status.
Fields§
§range: Range<usize>Byte range within the line.
style: Option<&'a StyleValue>The style value covering this segment, if any.
is_selected: boolWhether this segment is within the active selection.
Trait Implementations§
Source§impl<'a> Clone for StyledSegment<'a>
impl<'a> Clone for StyledSegment<'a>
Source§fn clone(&self) -> StyledSegment<'a>
fn clone(&self) -> StyledSegment<'a>
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<'a> Debug for StyledSegment<'a>
impl<'a> Debug for StyledSegment<'a>
impl<'a> Eq for StyledSegment<'a>
Source§impl<'a> PartialEq for StyledSegment<'a>
impl<'a> PartialEq for StyledSegment<'a>
impl<'a> StructuralPartialEq for StyledSegment<'a>
Auto Trait Implementations§
impl<'a> Freeze for StyledSegment<'a>
impl<'a> RefUnwindSafe for StyledSegment<'a>
impl<'a> Send for StyledSegment<'a>
impl<'a> Sync for StyledSegment<'a>
impl<'a> Unpin for StyledSegment<'a>
impl<'a> UnsafeUnpin for StyledSegment<'a>
impl<'a> UnwindSafe for StyledSegment<'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