pub struct SourceInline {
pub tag: String,
pub attrs: Vec<(String, String)>,
pub path: String,
pub start: usize,
pub end: usize,
}Expand description
An inline element inside a SourceBlock (#911): where its text sits
in the block’s, so a caller can select or leave out the text of one
element — not a whole block — by what the source says about it.
Fields§
§tag: StringThe element’s tag name (span, b, a, …).
attrs: Vec<(String, String)>Every attribute, by name.
path: StringIts path from the document root, as SourceBlock::path.
start: usizeThe byte range of its text in SourceBlock::text — always on
char boundaries, so &text[start..end] is the element’s normalized
text; empty for an element with no text.
end: usizeImplementations§
Source§impl SourceInline
impl SourceInline
Trait Implementations§
Source§impl Clone for SourceInline
impl Clone for SourceInline
Source§impl Debug for SourceInline
impl Debug for SourceInline
impl Eq for SourceInline
Source§impl PartialEq for SourceInline
impl PartialEq for SourceInline
impl StructuralPartialEq for SourceInline
Auto Trait Implementations§
impl Forget for SourceInline
impl Freeze for SourceInline
impl RefUnwindSafe for SourceInline
impl Send for SourceInline
impl Sync for SourceInline
impl Unpin for SourceInline
impl UnsafeUnpin for SourceInline
impl UnwindSafe for SourceInline
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.