[−][src]Struct struckdown::html::HtmlRenderer
Object capable of rendering events to HTML.
Implementations
impl<'data, 'options, F: Write> HtmlRenderer<'data, 'options, F>
[src]
pub fn new(
out: F,
options: &'options HtmlRendererOptions
) -> HtmlRenderer<'data, 'options, F>
[src]
out: F,
options: &'options HtmlRendererOptions
) -> HtmlRenderer<'data, 'options, F>
Creates a new renderer that writes into a writer.
pub fn into_writer(self) -> F
[src]
Consumes the writer and returns the inner file.
pub fn feed_event(&mut self, event: &AnnotatedEvent<'data>) -> Result<(), Error>
[src]
Feeds a single event into the renderer.
pub fn feed_stream<I>(&mut self, iter: I) -> Result<(), Error> where
I: Iterator<Item = AnnotatedEvent<'data>>,
[src]
I: Iterator<Item = AnnotatedEvent<'data>>,
Feeds an event stream into the renderer.
In this case the iterator is consumed. Alternatively you can/have
to use feed_event
directly which lets you pass events by
reference instead.
impl<'data, 'options> HtmlRenderer<'data, 'options, Vec<u8>>
[src]
pub fn new_buffered(options: &'options HtmlRendererOptions) -> Self
[src]
Creates a new html renderer writing into a buffer.
pub fn into_string(self) -> String
[src]
Converts the renderer into a string.
Auto Trait Implementations
impl<'data, 'options, F> RefUnwindSafe for HtmlRenderer<'data, 'options, F> where
F: RefUnwindSafe,
[src]
F: RefUnwindSafe,
impl<'data, 'options, F> Send for HtmlRenderer<'data, 'options, F> where
F: Send,
[src]
F: Send,
impl<'data, 'options, F> Sync for HtmlRenderer<'data, 'options, F> where
F: Sync,
[src]
F: Sync,
impl<'data, 'options, F> Unpin for HtmlRenderer<'data, 'options, F> where
F: Unpin,
[src]
F: Unpin,
impl<'data, 'options, F> UnwindSafe for HtmlRenderer<'data, 'options, F> where
F: UnwindSafe,
[src]
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,