pub struct BracketResolution {
pub close_event: u32,
pub text_start: usize,
pub text_end: usize,
pub suffix_start: usize,
pub suffix_end: usize,
pub kind: LinkKind,
}Expand description
Successful bracket resolution: the […] pair is a link or image.
Fields§
§close_event: u32IR event index of the matching CloseBracket.
text_start: usizeSource range of the link text (between [/![ and ]).
text_end: usize§suffix_start: usizeSource range of the link suffix ((...), [label], [], or
empty for shortcut). When kind == ShortcutReference,
suffix_start == suffix_end == close_pos + 1.
suffix_end: usize§kind: LinkKindTrait Implementations§
Source§impl Clone for BracketResolution
impl Clone for BracketResolution
Source§fn clone(&self) -> BracketResolution
fn clone(&self) -> BracketResolution
Returns a duplicate of the value. Read more
1.0.0 · 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 BracketResolution
impl RefUnwindSafe for BracketResolution
impl Send for BracketResolution
impl Sync for BracketResolution
impl Unpin for BracketResolution
impl UnsafeUnpin for BracketResolution
impl UnwindSafe for BracketResolution
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