pub struct WikiLink(/* private fields */);Expand description
A Pandoc wikilink: [[url]], [[url|title]], ![[url]],
![[url|title]]. Both WIKI_LINK and IMAGE_WIKI_LINK cast to this
wrapper; discriminate with WikiLink::is_image. The URL and (when
present) title are flat raw-text spans — wikilink children are not
recursively parsed for inline markup, matching pandoc behavior.
Implementations§
Trait Implementations§
Source§impl AstNode for WikiLink
impl AstNode for WikiLink
type Language = PanacheLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl !RefUnwindSafe for WikiLink
impl !Send for WikiLink
impl !Sync for WikiLink
impl !UnwindSafe for WikiLink
impl Freeze for WikiLink
impl Unpin for WikiLink
impl UnsafeUnpin for WikiLink
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