pub struct MediaLineSpan {
pub path: String,
pub alt: String,
pub attrs: String,
pub value: Range<usize>,
pub value_attrs: String,
pub is_token: bool,
}Expand description
One recognized media reference on a single line, with LINE-RELATIVE offsets. Produced by the gallery and hero line recognizers; lifted to absolute offsets by the block-level scanner.
Fields§
§path: StringThe path text as the parser would read it.
alt: StringAlt text (), or "".
attrs: StringThe full |attrs suffix the parser reads (may sit outside value).
value: Range<usize>Line-relative span a rename replaces.
value_attrs: StringThe |attrs suffix contained WITHIN value.
is_token: boolThe line carried markdown reference syntax (![[…]] / ),
so extract_md_references already sees it as a token.
Trait Implementations§
Source§impl Clone for MediaLineSpan
impl Clone for MediaLineSpan
Source§fn clone(&self) -> MediaLineSpan
fn clone(&self) -> MediaLineSpan
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 MediaLineSpan
impl Debug for MediaLineSpan
impl Eq for MediaLineSpan
Source§impl PartialEq for MediaLineSpan
impl PartialEq for MediaLineSpan
impl StructuralPartialEq for MediaLineSpan
Auto Trait Implementations§
impl Freeze for MediaLineSpan
impl RefUnwindSafe for MediaLineSpan
impl Send for MediaLineSpan
impl Sync for MediaLineSpan
impl Unpin for MediaLineSpan
impl UnsafeUnpin for MediaLineSpan
impl UnwindSafe for MediaLineSpan
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.