pub trait Writer<T>: Execute<T> { }Expand description
An exporter that converts an RDF graph or dataset into a supported representation.
Output may be another RDF serialization or a non-RDF document or byte stream. The program defines supported formats, mappings, and any information loss, such as omission of named graphs or datatype information. This role describes a data-export operation, not an implementation of Rust’s byte-writing traits.
§Command-line contract
PROGRAM [OPTIONS] [INPUT-FILE [OUTPUT-FILE]]
Input and output default to stdin and stdout. A single operand selects
input; two select input then output, with - denoting a standard stream.
WriterOptions defaults to jsonl input and automatic output-format
selection. The program must define automatic selection even when stdout
has no filename from which to infer a format.
T is the implementation’s exported-result representation. See
crate::programs for links to concrete execution behavior and the
writer specification.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".