← Standard library

StringLike

constraint StringLike
import StringLike from Wax;

A value that can expose a borrowed UTF-8 StringSlice, allowing string search methods to accept either owned strings or slices.

String.wax:14

Members

ToStringSlicemethod

public fn ToStringSlice() : StringSlice

Returns a borrowed UTF-8 view usable for string search. The view must remain valid for its scoped lifetime.

String.wax:19