pub struct CitationStreamParser { /* private fields */ }Expand description
Stream parser for <oai-mem-citation>...</oai-mem-citation> tags.
This is a thin convenience wrapper around InlineHiddenTagParser. It returns citation bodies
as plain strings and omits the citation tags from visible text.
Matching is literal and non-nested. If EOF is reached before a closing
</oai-mem-citation>, the parser auto-closes the tag and returns the buffered body as an
extracted citation.
Implementations§
Trait Implementations§
Source§impl Debug for CitationStreamParser
impl Debug for CitationStreamParser
Source§impl Default for CitationStreamParser
impl Default for CitationStreamParser
Source§impl StreamTextParser for CitationStreamParser
impl StreamTextParser for CitationStreamParser
Auto Trait Implementations§
impl Freeze for CitationStreamParser
impl RefUnwindSafe for CitationStreamParser
impl Send for CitationStreamParser
impl Sync for CitationStreamParser
impl Unpin for CitationStreamParser
impl UnsafeUnpin for CitationStreamParser
impl UnwindSafe for CitationStreamParser
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