RdfDisplay

Trait RdfDisplay 

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

    // 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<(), Error>

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RdfDisplay for str

Source§

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

Source§

impl RdfDisplay for String

Source§

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

Source§

impl<'c, T, C> RdfDisplay for Contextual<T, &'c C>
where T: RdfDisplayWithContext<C>, C: ?Sized,

Available on crate feature contextual only.
Source§

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

Source§

impl<'c, T, C> RdfDisplay for Contextual<T, &'c mut C>
where T: RdfDisplayWithContext<C>, C: ?Sized,

Available on crate feature contextual only.
Source§

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

Source§

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

Source§

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

Implementors§

Source§

impl RdfDisplay for Iri

Source§

impl RdfDisplay for IriBuf

Source§

impl RdfDisplay for IriRef

Source§

impl RdfDisplay for IriRefBuf

Source§

impl RdfDisplay for LangTag

Source§

impl RdfDisplay for LangTagBuf

Source§

impl<I> RdfDisplay for LiteralType<I>
where I: RdfDisplay,

Source§

impl<I> RdfDisplay for LiteralTypeRef<'_, I>
where I: RdfDisplay,

Source§

impl<I> RdfDisplay for Literal<I>

Source§

impl<I> RdfDisplay for LiteralRef<'_, I>

Source§

impl<I, B> RdfDisplay for Id<I, B>
where I: Display, B: Display,

Source§

impl<I, L> RdfDisplay for Term<I, L>
where I: RdfDisplay, L: RdfDisplay,

Source§

impl<R> RdfDisplay for BTreeDataset<R>
where R: RdfDisplay,

Source§

impl<R> RdfDisplay for BTreeGraph<R>
where R: RdfDisplay,

Source§

impl<R> RdfDisplay for IndexedBTreeDataset<R>
where R: RdfDisplay,

Source§

impl<R> RdfDisplay for IndexedBTreeGraph<R>
where R: RdfDisplay,

Source§

impl<S, P, O> RdfDisplay for Triple<S, P, O>
where S: RdfDisplay, P: RdfDisplay, O: RdfDisplay,

Source§

impl<S, P, O, G> RdfDisplay for Quad<S, P, O, G>