struct Converter<'a, 'b, R: BufRead> {
iter: &'a mut Peekable<Lines<R>>,
output: &'b mut String,
}
Fields§
§iter: &'a mut Peekable<Lines<R>>
§output: &'b mut String
Implementations§
source§impl<'a, 'b, R: BufRead> Converter<'a, 'b, R>
impl<'a, 'b, R: BufRead> Converter<'a, 'b, R>
fn new(iter: &'a mut Peekable<Lines<R>>, output: &'b mut String) -> Self
fn process(&mut self) -> Result<()>
fn process_document_header(&mut self) -> Result<()>
fn process_document_title(&mut self) -> Result<()>
fn process_list(&mut self) -> Result<()>
fn process_source_code_block(&mut self, level: usize) -> Result<()>
fn process_listing_block( &mut self, style: Option<&str>, level: usize, ) -> Result<()>
fn process_block_with_title(&mut self, level: usize) -> Result<()>
fn process_image_block( &mut self, caption: Option<&str>, level: usize, ) -> Result<()>
fn process_video_block( &mut self, caption: Option<&str>, level: usize, ) -> Result<()>
fn process_paragraph<P>(&mut self, level: usize, predicate: P) -> Result<()>
fn skip_blank_lines(&mut self) -> Result<()>
fn write_title(&mut self, indent: usize, title: &str)
fn write_list_item(&mut self, item: &str, nesting: &ListNesting)
fn write_indent(&mut self, indent: usize)
fn write_line(&mut self, line: &str, indent: usize)
Auto Trait Implementations§
impl<'a, 'b, R> Freeze for Converter<'a, 'b, R>
impl<'a, 'b, R> !RefUnwindSafe for Converter<'a, 'b, R>
impl<'a, 'b, R> Send for Converter<'a, 'b, R>where
R: Send,
impl<'a, 'b, R> Sync for Converter<'a, 'b, R>where
R: Sync,
impl<'a, 'b, R> Unpin for Converter<'a, 'b, R>
impl<'a, 'b, R> !UnwindSafe for Converter<'a, 'b, R>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more