ExpressibleByStringLiteral

public protocol ExpressibleByStringLiteral

Protocol for types that accept a string literal ("…").

The init receives a raw pointer and byte length so that string literal lowering does not require the target type to already exist in stdlib form.

Initializers

init(stringLiteral: lang.ptr[lang.i8], lang.i64)

Builds an instance from a string literal.

Defined in lang/std/core/literals.ks