pub trait Stringifier {
    fn as_utf8(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; fn as_str(&self) -> &str { ... }
fn to_string(&self) -> String { ... } }
Expand description

A stringifier is special kind of TripleSerializer or QuadSerializer:

  • it uses a text-based format encoded in UTF8;
  • it stores the serialize data in memory;
  • it gives access to the serialized data as str or String.

Required methods

Borrows the internal serialized data.

Safety

It is the responsibility of implementors to ensure that this data is valid UTF8. The methods as_str and to_string rely on this.

Provided methods

Borrows the internal serialized data as a str.

Copy the internal serialized data to a String.

Implementors