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
Source§fn clone(&self) -> InlineSpan
fn clone(&self) -> InlineSpan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze 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