Skip to main content

OwnedElement

Type Alias OwnedElement 

Source
pub type OwnedElement = Element<'static>;
Expand description

An Element that owns all of its text. See OwnedSegment.

Aliased Type§

pub struct OwnedElement {
    pub span: Span,
    pub components: SmallVec<[(Cow<'static, str>, Span); 4]>,
    pub repeats: Vec<SmallVec<[(Cow<'static, str>, Span); 4]>>,
}

Fields§

§span: Span

Span covering the whole element, including every occurrence.

§components: SmallVec<[(Cow<'static, str>, Span); 4]>

Components of the first occurrence, in positional order.

§repeats: Vec<SmallVec<[(Cow<'static, str>, Span); 4]>>

Second and subsequent occurrences of this data element.

Empty — and therefore unallocated — unless the interchange declares a repetition separator and the element actually repeats.