pub struct AttributedSegment<'a> {
pub start: u32,
pub end: u32,
pub attributes: Vec<TextAttribute>,
pub link: Option<&'a str>,
}Expand description
A non-overlapping slice of an AttributedString with its effective
attributes and link. Produced by AttributedString::segments.
Fields§
§start: u32Inclusive UTF-8 byte start.
end: u32Exclusive UTF-8 byte end.
attributes: Vec<TextAttribute>Effective attributes for this slice (later covering runs win).
link: Option<&'a str>The effective link URL, if this slice is linked.
Trait Implementations§
Source§impl<'a> Clone for AttributedSegment<'a>
impl<'a> Clone for AttributedSegment<'a>
Source§impl<'a> Debug for AttributedSegment<'a>
impl<'a> Debug for AttributedSegment<'a>
impl<'a> Eq for AttributedSegment<'a>
Source§impl<'a> PartialEq for AttributedSegment<'a>
impl<'a> PartialEq for AttributedSegment<'a>
impl<'a> StructuralPartialEq for AttributedSegment<'a>
Auto Trait Implementations§
impl<'a> Forget for AttributedSegment<'a>
impl<'a> Freeze for AttributedSegment<'a>
impl<'a> RefUnwindSafe for AttributedSegment<'a>
impl<'a> Send for AttributedSegment<'a>
impl<'a> Sync for AttributedSegment<'a>
impl<'a> Unpin for AttributedSegment<'a>
impl<'a> UnsafeUnpin for AttributedSegment<'a>
impl<'a> UnwindSafe for AttributedSegment<'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