rust

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeCharAll added in v1.6.0

func EscapeCharAll(s string) string

EscapeCharAll escapes each character in a string using Rust's char::escape_debug() with ESCAPE_ALL (grapheme extend always escaped). This is used for Pattern literals, where Rust calls c.escape_debug() per-character rather than str::escape_debug().

func EscapeString added in v1.6.0

func EscapeString(s string) string

EscapeString escapes a string using Rust's str::escape_debug() semantics. The first character uses ESCAPE_ALL (grapheme extend chars are escaped). Continuation characters do NOT escape grapheme extend chars, matching Rust's CharEscapeDebugContinue { escape_grapheme_extended: false, ... }.

func IsDecimal

func IsDecimal(ch rune) bool

func IsHexadecimal

func IsHexadecimal(ch rune) bool

func Unquote

func Unquote(b []byte, star bool) (string, []byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL