The Rust engine, one function per operation it has.
Nothing here is meant to be called directly: Cadmpeg and Cadmpeg.Document
decode the answers, refuse with Cadmpeg.Error and keep the handle opaque. An
operation is listed here, in native/cadmpeg_nif/src/lib.rs and in the test
that calls every one of them, or it does not exist.
Summary
Functions
Whether the engine is built and loaded in this VM.
A handle from the document's own JSON.
The input formats this build reads, as JSON.
A file opened into a document handle, with its decode report as JSON.
The output formats this build writes, as JSON.
The document as its versioned JSON.
The words an output format can be named by.
Writes the document in format to path, answering the export report as JSON.
Functions
@spec available() :: boolean()
Whether the engine is built and loaded in this VM.
A handle from the document's own JSON.
@spec inputs() :: String.t()
The input formats this build reads, as JSON.
@spec loaded?() :: boolean()
A file opened into a document handle, with its decode report as JSON.
@spec outputs() :: String.t()
The output formats this build writes, as JSON.
The document as its versioned JSON.
@spec vocabulary() :: String.t()
The words an output format can be named by.
@spec write(reference(), String.t(), String.t(), String.t()) :: {:ok, String.t()} | {:error, {String.t(), String.t()}}
Writes the document in format to path, answering the export report as JSON.