Trait rdf_types::RdfDisplay

source ·
pub trait RdfDisplay {
    // Required method
    fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result;

    // Provided method
    fn rdf_display(&self) -> RdfDisplayed<&Self> { ... }
}
Expand description

Display method for RDF syntax elements.

Required Methods§

source

fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.

Provided Methods§

source

fn rdf_display(&self) -> RdfDisplayed<&Self>

Prepare the value to be formatted as an RDF syntax element.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RdfDisplay for str

source§

fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result

source§

impl RdfDisplay for String

source§

fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result

source§

impl RdfDisplay for IriRef

source§

fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result

source§

impl RdfDisplay for IriRefBuf

source§

fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result

source§

impl RdfDisplay for LangTag

source§

fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result

source§

impl RdfDisplay for LangTagBuf

source§

fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result

source§

impl<'a, T: RdfDisplay + ?Sized> RdfDisplay for &'a T

source§

fn rdf_fmt(&self, f: &mut Formatter<'_>) -> Result

Implementors§