pub struct PlainText;Expand description
Renders processed citations and bibliography entries as plain text.
Trait Implementations§
Source§impl OutputFormat for PlainText
impl OutputFormat for PlainText
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 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 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
Source§fn quote_marks(&self, depth: usize) -> (&'static str, &'static str)
fn quote_marks(&self, depth: usize) -> (&'static str, &'static str)
Return the opening and closing quote delimiters for a nesting depth. Read more
Source§fn quote_with_depth(&self, content: Self::Output, depth: usize) -> Self::Output
fn quote_with_depth(&self, content: Self::Output, depth: usize) -> Self::Output
Render content enclosed in quotation marks at a specific nesting depth.
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.
Auto Trait Implementations§
impl Freeze for PlainText
impl RefUnwindSafe for PlainText
impl Send for PlainText
impl Sync for PlainText
impl Unpin for PlainText
impl UnsafeUnpin for PlainText
impl UnwindSafe for PlainText
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