pub struct Span {
pub range: Range<usize>,
pub style: Style,
}Expand description
A styled run: a byte range over the owning text, plus its style.
Ranges are over the rendered text, not the source. Markdown
removes its delimiters, so text and the input string differ; every
offset in a Span indexes ParsedText::text.
Fields§
§range: Range<usize>§style: StyleTrait Implementations§
impl Eq for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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