pub struct RenderedSpan {
pub range: Range<usize>,
pub sections: Vec<SectionOrigin>,
pub variable: Option<String>,
}Expand description
Non-overlapping UTF-8 byte span in the final text. Section ancestry preserves nesting without counting a parent’s text a second time. Variables remain literal values and inherit their containing section’s attribution.
Fields§
§range: Range<usize>§sections: Vec<SectionOrigin>§variable: Option<String>Trait Implementations§
Source§impl Clone for RenderedSpan
impl Clone for RenderedSpan
Source§fn clone(&self) -> RenderedSpan
fn clone(&self) -> RenderedSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RenderedSpan
impl Debug for RenderedSpan
impl Eq for RenderedSpan
Source§impl PartialEq for RenderedSpan
impl PartialEq for RenderedSpan
Source§fn eq(&self, other: &RenderedSpan) -> bool
fn eq(&self, other: &RenderedSpan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RenderedSpan
impl Serialize for RenderedSpan
impl StructuralPartialEq for RenderedSpan
Auto Trait Implementations§
impl Freeze for RenderedSpan
impl RefUnwindSafe for RenderedSpan
impl Send for RenderedSpan
impl Sync for RenderedSpan
impl Unpin for RenderedSpan
impl UnsafeUnpin for RenderedSpan
impl UnwindSafe for RenderedSpan
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