pub struct HighlightSpan {
pub start: usize,
pub length: usize,
pub format: HighlightFormat,
}Expand description
A single highlight span within a block.
start and length are block-relative character offsets.
Fields§
§start: usize§length: usize§format: HighlightFormatTrait Implementations§
Source§impl Clone for HighlightSpan
impl Clone for HighlightSpan
Source§fn clone(&self) -> HighlightSpan
fn clone(&self) -> HighlightSpan
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 moreSource§impl Debug for HighlightSpan
impl Debug for HighlightSpan
Source§impl PartialEq for HighlightSpan
impl PartialEq for HighlightSpan
impl Eq for HighlightSpan
impl StructuralPartialEq for HighlightSpan
Auto Trait Implementations§
impl Freeze for HighlightSpan
impl RefUnwindSafe for HighlightSpan
impl Send for HighlightSpan
impl Sync for HighlightSpan
impl Unpin for HighlightSpan
impl UnsafeUnpin for HighlightSpan
impl UnwindSafe for HighlightSpan
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