pub struct StrikethroughParser { /* private fields */ }Expand description
InlineParser for strikethrough text.
Implementations§
Source§impl StrikethroughParser
impl StrikethroughParser
Sourcepub fn new() -> Self
pub fn new() -> Self
Returns a new StrikethroughParser.
Trait Implementations§
Source§impl Debug for StrikethroughParser
impl Debug for StrikethroughParser
Source§impl Default for StrikethroughParser
impl Default for StrikethroughParser
Source§impl From<StrikethroughParser> for AnyInlineParser
impl From<StrikethroughParser> for AnyInlineParser
Source§fn from(p: StrikethroughParser) -> Self
fn from(p: StrikethroughParser) -> Self
Converts to this type from the input type.
Source§impl InlineParser for StrikethroughParser
impl InlineParser for StrikethroughParser
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 StrikethroughParser
impl RefUnwindSafe for StrikethroughParser
impl Send for StrikethroughParser
impl Sync for StrikethroughParser
impl Unpin for StrikethroughParser
impl UnsafeUnpin for StrikethroughParser
impl UnwindSafe for StrikethroughParser
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