pub struct UnresolvedRefShape {
pub close_event: u32,
pub text_end: usize,
pub end: usize,
}Expand description
Pandoc-only: extents of an unresolved bracket-shape reference
pattern. Recorded on IrEvent::OpenBracket.unresolved_ref when the
no-resolution fall-through fires under Dialect::Pandoc.
Fields§
§close_event: u32IR event index of the matching CloseBracket. Used by the
scoped-emphasis pass to treat the wrapper as a tree boundary.
text_end: usizeOne past the end of the inner text (the byte position of the
outer ]). Combined with the opener’s end field, this is the
inner text range that goes through normal inline parsing.
end: usizeOne past the end of the full bracket-shape pattern. For
shortcut form [text]: close_pos + 1. For collapsed
[text][]: close_pos + 3. For full [text][label]: the byte
after the closing ] of [label].
Trait Implementations§
Source§impl Clone for UnresolvedRefShape
impl Clone for UnresolvedRefShape
Source§fn clone(&self) -> UnresolvedRefShape
fn clone(&self) -> UnresolvedRefShape
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 UnresolvedRefShape
impl Debug for UnresolvedRefShape
Source§impl PartialEq for UnresolvedRefShape
impl PartialEq for UnresolvedRefShape
Source§fn eq(&self, other: &UnresolvedRefShape) -> bool
fn eq(&self, other: &UnresolvedRefShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for UnresolvedRefShape
impl Eq for UnresolvedRefShape
impl StructuralPartialEq for UnresolvedRefShape
Auto Trait Implementations§
impl Freeze for UnresolvedRefShape
impl RefUnwindSafe for UnresolvedRefShape
impl Send for UnresolvedRefShape
impl Sync for UnresolvedRefShape
impl Unpin for UnresolvedRefShape
impl UnsafeUnpin for UnresolvedRefShape
impl UnwindSafe for UnresolvedRefShape
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