pub enum AbandonReason {
Bracket,
Code,
EmptyTarget,
Unclosed,
}Expand description
Why the scanner gave up on a [[. See AbandonedLink.
Variants§
Bracket
A [ or ] came before the closing ]]: [[ never nests, so
[[a [1]]] and [[x]y]] are not links.
Code
Closed, but the target is empty once the code inside it is blanked:
[[`Note`]].
EmptyTarget
Closed with an empty target: [[]], [[ |alias]], or [[#Heading]]
when ScanOptions::self_links is off.
Unclosed
No ]] before the end of the body.
Trait Implementations§
Source§impl Clone for AbandonReason
impl Clone for AbandonReason
impl Copy for AbandonReason
Source§impl Debug for AbandonReason
impl Debug for AbandonReason
impl Eq for AbandonReason
Source§impl Hash for AbandonReason
impl Hash for AbandonReason
Source§impl PartialEq for AbandonReason
impl PartialEq for AbandonReason
impl StructuralPartialEq for AbandonReason
Auto Trait Implementations§
impl Freeze for AbandonReason
impl RefUnwindSafe for AbandonReason
impl Send for AbandonReason
impl Sync for AbandonReason
impl Unpin for AbandonReason
impl UnsafeUnpin for AbandonReason
impl UnwindSafe for AbandonReason
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