pub struct EmphasisSpan {
pub line: usize,
pub start_col: usize,
pub end_col: usize,
pub byte_offset: usize,
pub byte_end: usize,
pub marker: char,
pub marker_count: usize,
pub content: String,
}Expand description
Pre-parsed emphasis span information
Fields§
§line: usizeLine number (1-indexed)
start_col: usizeStart column (0-indexed) in the line
end_col: usizeEnd column (0-indexed) in the line
byte_offset: usizeByte offset in document
byte_end: usizeEnd byte offset in document
marker: charType of emphasis (‘*’ or ‘_’)
marker_count: usizeNumber of markers (1 for italic, 2 for bold, 3+ for bold+italic)
content: StringContent inside the emphasis
Trait Implementations§
Source§impl Clone for EmphasisSpan
impl Clone for EmphasisSpan
Source§fn clone(&self) -> EmphasisSpan
fn clone(&self) -> EmphasisSpan
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 EmphasisSpan
impl RefUnwindSafe for EmphasisSpan
impl Send for EmphasisSpan
impl Sync for EmphasisSpan
impl Unpin for EmphasisSpan
impl UnwindSafe for EmphasisSpan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more