loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / RENDERING, VIEWPORTS, AND COMPOSITION

RecordingBackend

A byte backend for ordinary importing clients to inspect terminal output.

Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.

Members on this page

Feature guides and release status

RecordingBackend

Structure
struct RecordingBackend

Conforms to: weft.Backend.

A byte backend for ordinary importing clients to inspect terminal output.

Source · RecordingBackend.swift:5

writes

Instance Property
var writes: [Data] { get }

A public field of this type. Its value type and mutability are shown in the declaration.

Source · RecordingBackend.swift:6

data

Instance Property
var data: Data { get }

A public field of this type. Its value type and mutability are shown in the declaration.

Source · RecordingBackend.swift:7

init()

Initializer
init()

Creates a value with the supplied arguments. Default arguments are shown in the declaration.

Source · RecordingBackend.swift:9

write(_:)

Instance Method
mutating func write(_ data: Data)

Appends bytes for inspection without a terminal session.

Parameters (1)
data
Bytes to write in order.
Source · RecordingBackend.swift:11

reset()

Instance Method
mutating func reset()

Clears the recorded byte history.

Source · RecordingBackend.swift:15