pub struct BlockquoteParser {}Expand description
BlockParser for blockquotes.
Implementations§
Source§impl BlockquoteParser
impl BlockquoteParser
Sourcepub fn new() -> Self
pub fn new() -> Self
Returns a new BlockquoteParser.
Trait Implementations§
Source§impl BlockParser for BlockquoteParser
impl BlockParser for BlockquoteParser
Source§fn trigger(&self) -> &[u8] ⓘ
fn trigger(&self) -> &[u8] ⓘ
Returns a list of characters that triggers Parse method of
this parser.
If
trigger returns a empty slice, open will be called with any lines.Source§fn open(
&self,
arena: &mut Arena,
_parent_ref: NodeRef,
reader: &mut BasicReader<'_>,
_ctx: &mut Context,
) -> Option<(NodeRef, State)>
fn open( &self, arena: &mut Arena, _parent_ref: NodeRef, reader: &mut BasicReader<'_>, _ctx: &mut Context, ) -> Option<(NodeRef, State)>
Parses the current line and returns a result of parsing. Read more
Source§fn cont(
&self,
_arena: &mut Arena,
_node_ref: NodeRef,
reader: &mut BasicReader<'_>,
_ctx: &mut Context,
) -> Option<State>
fn cont( &self, _arena: &mut Arena, _node_ref: NodeRef, reader: &mut BasicReader<'_>, _ctx: &mut Context, ) -> Option<State>
Parses the current line and returns a result of parsing. Read more
Source§fn can_interrupt_paragraph(&self) -> bool
fn can_interrupt_paragraph(&self) -> bool
Returns true if the parser can interrupt paragraphs,
otherwise false.
Source§fn close(
&self,
_arena: &mut Arena,
_node_ref: NodeRef,
_reader: &mut BasicReader<'_>,
_ctx: &mut Context,
)
fn close( &self, _arena: &mut Arena, _node_ref: NodeRef, _reader: &mut BasicReader<'_>, _ctx: &mut Context, )
close will be called when the parser returns State::CLOSE.Source§fn can_accept_indented_line(&self) -> bool
fn can_accept_indented_line(&self) -> bool
Returns true if the parser can open new node when
the given line is being indented more than 3 spaces.
Source§impl Debug for BlockquoteParser
impl Debug for BlockquoteParser
Source§impl Default for BlockquoteParser
impl Default for BlockquoteParser
Source§fn default() -> BlockquoteParser
fn default() -> BlockquoteParser
Returns the “default value” for a type. Read more
Source§impl From<BlockquoteParser> for AnyBlockParser
impl From<BlockquoteParser> for AnyBlockParser
Source§fn from(p: BlockquoteParser) -> Self
fn from(p: BlockquoteParser) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockquoteParser
impl RefUnwindSafe for BlockquoteParser
impl Send for BlockquoteParser
impl Sync for BlockquoteParser
impl Unpin for BlockquoteParser
impl UnsafeUnpin for BlockquoteParser
impl UnwindSafe for BlockquoteParser
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