CRDriver
is the main set of APIs.class CRDriver
The central API for interacting with CiteprocRsKit.
typealias CROutputFormat
Enum, format to write output in: .html, .rtf, .plain
citeproc-rs
in Swift.Framework
See citeproc-rs
for more information.
CRDriver
is the main set of APIs.class CRDriver
typealias CROutputFormat
throws
; this means even the smallest error on the FFI boundary results in a stack trace. Notably, every panic that unwinds to the FFI boundary is caught and thrown as a Swift exception, with the backtrace logged to your logger of choice.struct CRError
citeproc-rs
’ end, but sometimes generated in the Swift bindings.typealias CRErrorCode
UInt32
.See also: insert
, and other methods on CRDriver
.
class CRClusterHandle
typealias CRClusterId
UInt32
) representation of a cluster ID.struct CRCite
struct CRClusterPosition
setClusterOrder(positions:)
citeproc-rs
’ logs to the destination of your choice.protocol CRLog
log
crate.struct CRLogger
class CROSLogger
typealias CRLogLevel
.error = 1, .warn, .info, .debug, .trace
: Log severity levels from the Rust log
crate.typealias CRLevelFilter
.off, .error, .warn, .info, .debug, .trace
: Log level filters from the Rust log
crate. .off
means “no logs should be logged”; .warn
means “errors and warnings should be logged”.CRDriver
, you can use either raw JSON Data
or any kind of Encodable
value that produces CSL-JSON. For convenience a set of types that do that is provided.enum CslVariable