Empty
public struct Empty { /* private fields */ }Readable that always returns 0 (EOF). Useful as a placeholder reader
or in tests that need to assert how a consumer handles an empty source.
Representation
Zero-sized — no fields.
Initializers
public init()
public init()Builds the empty reader.
ImplementsReadable
Methods
public mutating func read(into: ArraySlice[UInt8]) -> Result[Int64, IoError]
public mutating func read(into: ArraySlice[UInt8]) -> Result[Int64, IoError]Always returns .Ok(0).
Defined in lang/std/io/read.ks