pub struct InlineSpan {
pub text: String,
pub attrs: InlineAttrs,
pub link_url: Option<String>,
pub byte_range: Range<usize>,
}Expand description
One parsed span of a minimally-marked-up string.
Fields§
§text: StringVisible text of this span (link label for links).
attrs: InlineAttrsBold / italic attributes.
link_url: Option<String>Some(url) if this span is a link.
byte_range: Range<usize>Byte range into the original source string.
Trait Implementations§
Source§impl Clone for InlineSpan
impl Clone for InlineSpan
Auto Trait Implementations§
impl Forget for InlineSpan
impl Freeze for InlineSpan
impl Move for InlineSpan
impl RefUnwindSafe for InlineSpan
impl Send for InlineSpan
impl Sync for InlineSpan
impl Unpin for InlineSpan
impl UnsafeUnpin for InlineSpan
impl UnwindSafe for InlineSpan
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