[][src]Struct dialect::HighlightedSpan

pub struct HighlightedSpan<'text> {
    pub text: &'text str,
    pub group: Option<HighlightGroup>,
}

An individual fragment of possibly highlighted text.

Fields

text: &'text str

the text being highlighted

group: Option<HighlightGroup>

the highlight group it may have been assigned

Trait Implementations

impl<'text> Clone for HighlightedSpan<'text>[src]

impl<'text> Copy for HighlightedSpan<'text>[src]

impl<'text> Debug for HighlightedSpan<'text>[src]

impl<'text> Eq for HighlightedSpan<'text>[src]

impl<'text> Hash for HighlightedSpan<'text>[src]

impl<'text> Ord for HighlightedSpan<'text>[src]

impl<'text> PartialEq<HighlightedSpan<'text>> for HighlightedSpan<'text>[src]

impl<'text> PartialOrd<HighlightedSpan<'text>> for HighlightedSpan<'text>[src]

impl<'text> StructuralEq for HighlightedSpan<'text>[src]

impl<'text> StructuralPartialEq for HighlightedSpan<'text>[src]

Auto Trait Implementations

impl<'text> RefUnwindSafe for HighlightedSpan<'text>

impl<'text> Send for HighlightedSpan<'text>

impl<'text> Sync for HighlightedSpan<'text>

impl<'text> Unpin for HighlightedSpan<'text>

impl<'text> UnwindSafe for HighlightedSpan<'text>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.