pub struct RawHtmlParser {}Expand description
InlineParser for inline raw HTML.
Implementations§
Source§impl RawHtmlParser
impl RawHtmlParser
Sourcepub fn new() -> Self
pub fn new() -> Self
Returns a new RawHtmlParser.
Trait Implementations§
Source§impl Debug for RawHtmlParser
impl Debug for RawHtmlParser
Source§impl Default for RawHtmlParser
impl Default for RawHtmlParser
Source§fn default() -> RawHtmlParser
fn default() -> RawHtmlParser
Returns the “default value” for a type. Read more
Source§impl From<RawHtmlParser> for AnyInlineParser
impl From<RawHtmlParser> for AnyInlineParser
Source§fn from(p: RawHtmlParser) -> Self
fn from(p: RawHtmlParser) -> Self
Converts to this type from the input type.
Source§impl InlineParser for RawHtmlParser
impl InlineParser for RawHtmlParser
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 RawHtmlParser
impl RefUnwindSafe for RawHtmlParser
impl Send for RawHtmlParser
impl Sync for RawHtmlParser
impl Unpin for RawHtmlParser
impl UnsafeUnpin for RawHtmlParser
impl UnwindSafe for RawHtmlParser
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