pub struct Html;Expand description
Renders processed citations and bibliography entries as HTML fragments.
Trait Implementations§
Source§impl OutputFormat for Html
impl OutputFormat for Html
Source§fn text(&self, s: &str) -> Self::Output
fn text(&self, s: &str) -> Self::Output
Convert a raw string into the format’s output type. Read more
Source§fn join(&self, items: Vec<Self::Output>, delimiter: &str) -> Self::Output
fn join(&self, items: Vec<Self::Output>, delimiter: &str) -> Self::Output
Join multiple outputs into a single output using a delimiter.
Source§fn finish(&self, output: Self::Output) -> String
fn finish(&self, output: Self::Output) -> String
Convert the intermediate output into the final result string. Read more
Source§fn emph(&self, content: Self::Output) -> Self::Output
fn emph(&self, content: Self::Output) -> Self::Output
Render content with emphasis (typically italics).
Source§fn strong(&self, content: Self::Output) -> Self::Output
fn strong(&self, content: Self::Output) -> Self::Output
Render content with strong emphasis (typically bold).
Source§fn small_caps(&self, content: Self::Output) -> Self::Output
fn small_caps(&self, content: Self::Output) -> Self::Output
Render content in small capitals.
Source§fn superscript(&self, content: Self::Output) -> Self::Output
fn superscript(&self, content: Self::Output) -> Self::Output
Render content as superscript text.
Source§fn quote(&self, content: Self::Output) -> Self::Output
fn quote(&self, content: Self::Output) -> Self::Output
Render content enclosed in outer quotation marks.
Source§fn affix(
&self,
prefix: &str,
content: Self::Output,
suffix: &str,
) -> Self::Output
fn affix( &self, prefix: &str, content: Self::Output, suffix: &str, ) -> Self::Output
Apply outer prefix and suffix strings to the content. Read more
Source§fn inner_affix(
&self,
prefix: &str,
content: Self::Output,
suffix: &str,
) -> Self::Output
fn inner_affix( &self, prefix: &str, content: Self::Output, suffix: &str, ) -> Self::Output
Apply inner prefix and suffix strings to the content. Read more
Source§fn wrap_punctuation(
&self,
wrap: &WrapPunctuation,
content: Self::Output,
) -> Self::Output
fn wrap_punctuation( &self, wrap: &WrapPunctuation, content: Self::Output, ) -> Self::Output
Wrap the content in specific punctuation (parentheses, brackets, or quotes).
Source§fn semantic(&self, class: &str, content: Self::Output) -> Self::Output
fn semantic(&self, class: &str, content: Self::Output) -> Self::Output
Apply a semantic identifier (class) to the content. Read more
Source§fn annotation(&self, content: Self::Output) -> Self::Output
fn annotation(&self, content: Self::Output) -> Self::Output
Render an annotation block. Read more
Source§fn semantic_with_attributes(
&self,
class: &str,
content: Self::Output,
attributes: &[SemanticAttribute],
) -> Self::Output
fn semantic_with_attributes( &self, class: &str, content: Self::Output, attributes: &[SemanticAttribute], ) -> Self::Output
Apply a semantic identifier plus optional attributes to the content. Read more
Source§fn citation(&self, ids: Vec<String>, content: Self::Output) -> Self::Output
fn citation(&self, ids: Vec<String>, content: Self::Output) -> Self::Output
Render a full citation container with one or more reference IDs.
Source§fn link(&self, url: &str, content: Self::Output) -> Self::Output
fn link(&self, url: &str, content: Self::Output) -> Self::Output
Hyperlink the content to a URL.
Source§fn format_id(&self, id: &str) -> String
fn format_id(&self, id: &str) -> String
Format a reference ID for use as a target or link (e.g. adding a prefix).
Source§fn bibliography(&self, entries: Vec<Self::Output>) -> Self::Output
fn bibliography(&self, entries: Vec<Self::Output>) -> Self::Output
Render a full bibliography container. Read more
Source§fn entry(
&self,
id: &str,
content: Self::Output,
url: Option<&str>,
metadata: &ProcEntryMetadata,
) -> Self::Output
fn entry( &self, id: &str, content: Self::Output, url: Option<&str>, metadata: &ProcEntryMetadata, ) -> Self::Output
Render a single bibliography entry with its unique identifier and optional link. Read more
Auto Trait Implementations§
impl Freeze for Html
impl RefUnwindSafe for Html
impl Send for Html
impl Sync for Html
impl Unpin for Html
impl UnsafeUnpin for Html
impl UnwindSafe for Html
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