[][src]Trait sophia::serializer::QuadSerializer

pub trait QuadSerializer {
    type Error: 'static + Error;
    fn serialize_quads<QS>(
        &mut self,
        source: &mut QS
    ) -> StreamResult<&mut Self, QS::Error, Self::Error>
    where
        QS: QuadSource,
        Self: Sized
; fn serialize_dataset<D>(
        &mut self,
        dataset: &D
    ) -> StreamResult<&mut Self, D::Error, Self::Error>
    where
        D: Dataset,
        Self: Sized
, { ... } }

A quad serializer writes quads according to a given format.

Associated Types

type Error: 'static + Error

Loading content...

Required methods

fn serialize_quads<QS>(
    &mut self,
    source: &mut QS
) -> StreamResult<&mut Self, QS::Error, Self::Error> where
    QS: QuadSource,
    Self: Sized

Serialize all quads from the given QuadSource.

Loading content...

Provided methods

fn serialize_dataset<D>(
    &mut self,
    dataset: &D
) -> StreamResult<&mut Self, D::Error, Self::Error> where
    D: Dataset,
    Self: Sized

Serialize a whole Dataset.

While this method has a default implementation based on serialize_quads, some implementations may override it in order to better use the structure of the Dataset.

Loading content...

Implementors

impl<W> QuadSerializer for NtSerializer<W> where
    W: Write
[src]

type Error = Error

Loading content...