pub struct AutoLinkParser {}Expand description
InlineParser that parses auto links.
Implementations§
Source§impl AutoLinkParser
impl AutoLinkParser
Sourcepub fn new() -> Self
pub fn new() -> Self
Returns a new AutoLinkParser.
Trait Implementations§
Source§impl Debug for AutoLinkParser
impl Debug for AutoLinkParser
Source§impl Default for AutoLinkParser
impl Default for AutoLinkParser
Source§fn default() -> AutoLinkParser
fn default() -> AutoLinkParser
Returns the “default value” for a type. Read more
Source§impl From<AutoLinkParser> for AnyInlineParser
impl From<AutoLinkParser> for AnyInlineParser
Source§fn from(p: AutoLinkParser) -> Self
fn from(p: AutoLinkParser) -> Self
Converts to this type from the input type.
Source§impl InlineParser for AutoLinkParser
impl InlineParser for AutoLinkParser
Source§fn trigger(&self) -> &[u8] ⓘ
fn trigger(&self) -> &[u8] ⓘ
Returns a list of characters that triggers Parse method of
this parser.
Trigger characters must be a punctuation or a halfspace.
Halfspaces triggers this parser when character is any spaces characters or
a head of line
Source§fn parse(
&self,
arena: &mut Arena,
_parent_ref: NodeRef,
reader: &mut BlockReader<'_>,
_ctx: &mut Context,
) -> Option<NodeRef>
fn parse( &self, arena: &mut Arena, _parent_ref: NodeRef, reader: &mut BlockReader<'_>, _ctx: &mut Context, ) -> Option<NodeRef>
Parses the given block into an inline node. Read more
Source§fn close_block(
&self,
_arena: &mut Arena,
_node_ref: NodeRef,
_reader: &mut BlockReader<'_>,
_ctx: &mut Context,
)
fn close_block( &self, _arena: &mut Arena, _node_ref: NodeRef, _reader: &mut BlockReader<'_>, _ctx: &mut Context, )
close_block will be called when a block is closed.
Auto Trait Implementations§
impl Freeze for AutoLinkParser
impl RefUnwindSafe for AutoLinkParser
impl Send for AutoLinkParser
impl Sync for AutoLinkParser
impl Unpin for AutoLinkParser
impl UnsafeUnpin for AutoLinkParser
impl UnwindSafe for AutoLinkParser
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