Module sophia::serializers
source · Expand description
Serializers for standard RDF syntaxes, and tools for building new serializers.
Uniform interface
Each serializer module defines a Config
type, that
- implements
Default
, - has a
writer
method taking anyio::Write
and returning aWriteSerializer
, - has a
stringifier
method returning aStringSerializer
.
Each serializer module also provides two functions writer
and a stringifier
,
calling the corresponding methods from the default Config
.
WriteSerializer
and StringSerializer
are specializations of TripleSink
.
Modules
Reusable types, functions and macros for implementing serializers.
Traits
An extension of the
TripleSink
trait,
dedicated to serialization to strings,
with methods more explicitly named.An extension of the
TripleSink
trait,
dedicated to serialization to IO streams.