pub enum BracketDispo {
Open {
is_image: bool,
text_start: usize,
text_end: usize,
suffix_start: usize,
suffix_end: usize,
kind: LinkKind,
},
UnresolvedReference {
is_image: bool,
text_start: usize,
text_end: usize,
end: usize,
},
Literal,
}Expand description
Disposition of a single bracket byte after process_brackets.
Variants§
Open
[ or ![ of a resolved link/image. Emission emits the LINK/IMAGE
node and skips past suffix_end.
Fields
UnresolvedReference
Pandoc-only: [ or ![ of a bracket-shape reference pattern
whose label didn’t resolve. Emission wraps [start, end) in an
UNRESOLVED_REFERENCE node so downstream tools can attach
behavior to the bracket-shape pattern. text_start..text_end is
the inner text range (between the outer [/![ and ]).
Literal
Bracket byte (one of [, ], or !) that fell through to literal
text. Emission accumulates into the surrounding text run.
Trait Implementations§
Source§impl Clone for BracketDispo
impl Clone for BracketDispo
Source§fn clone(&self) -> BracketDispo
fn clone(&self) -> BracketDispo
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 moreAuto Trait Implementations§
impl Freeze for BracketDispo
impl RefUnwindSafe for BracketDispo
impl Send for BracketDispo
impl Sync for BracketDispo
impl Unpin for BracketDispo
impl UnsafeUnpin for BracketDispo
impl UnwindSafe for BracketDispo
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