protocol SubscriptRead<I>Defines value[index] reads for an index type I.
The associated result may be an owned value or a borrow. Bounds behavior is a conformance contract: core Array traps, while checked collections can return an optional result.
Methods
func subscript_read(at: I) -> T
Reads the element selected by at using the conformance's bounds policy.
View Source
func subscript_read(at: I) -> T