Struct

core::str::StaticRead

source
struct StaticRead { ... }

Permanent read access to the immutable 'static byte domain. Copy and zero-sized; it has no write, resume, or deallocation operation, so duplicating it is harmless. It authorizes reads of Str['static] only: Str is restricted and built only by its constructors, whose 'static obligation (extent, initialization, permanence, immutability) string-literal lowering discharges for literals.

Methods

method newsource

fn new() -> StaticRead { ... }

The capability to read 'static bytes.

Instances

instance ReadBytes[StaticRead, Str['static]]source

instance ReadBytes[StaticRead, Str['static]] { ... }

In core::str.

'static text is read through StaticRead.