Struct readme_sync::CodemapSpans[][src]

pub struct CodemapSpans<'a> { /* fields omitted */ }

Codemap span labels temporary storage used to create diagnostic messages.

Implementations

impl<'a> CodemapSpans<'a>[src]

pub fn new(codemap_files: &'a mut CodemapFiles) -> Self[src]

Creates a new codemap spans storage.

pub fn codemap_files(&self) -> &CodemapFiles[src]

Returns codemap files storage.

pub fn span_labels(&self) -> &[SpanLabel][src]

Returns a slice of span labels.

pub fn into_span_labels(self) -> Vec<SpanLabel>[src]

Converts this codemap spans to span labels.

pub fn span_labels_from<I>(
    codemap_files: &'a mut CodemapFiles,
    iter: I
) -> Vec<SpanLabel> where
    I: IntoIterator<Item = CMarkSpan<'a>>, 
[src]

Generate span labels from the given codemap files and CMark spans.

Trait Implementations

impl<'a> Debug for CodemapSpans<'a>[src]

impl<'a> Extend<CMarkSpan<'a>> for CodemapSpans<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for CodemapSpans<'a>

impl<'a> Send for CodemapSpans<'a>

impl<'a> Sync for CodemapSpans<'a>

impl<'a> Unpin for CodemapSpans<'a>

impl<'a> !UnwindSafe for CodemapSpans<'a>

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, 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.