Struct readme_sync::CodemapSpans [−][src]
pub struct CodemapSpans<'a> { /* fields omitted */ }
Expand description
Codemap span labels temporary storage used to create diagnostic messages.
Implementations
Creates a new codemap spans storage.
Returns codemap files storage.
Returns a slice of span labels.
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>>,
pub fn span_labels_from<I>(
codemap_files: &'a mut CodemapFiles,
iter: I
) -> Vec<SpanLabel> where
I: IntoIterator<Item = CMarkSpan<'a>>,
Generate span labels from the given codemap files and CMark spans.
Trait Implementations
Extends a collection with the contents of an iterator. Read more
🔬 This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
🔬 This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more