api reference

Glide modules

56 modules, 336 public items. Auto-generated from /// doc comments — each card opens its own page.

stdlib::backtrace

Return the current call stack, one frame per element. The first

2 items

stdlib::base64

Standard Base64 encode (RFC 4648, with `=` padding). Each group of

2 items

stdlib::bench

Run one named bench with an auto-tuned iteration count.

3 items

stdlib::crypto

SHA-256 over `data`, returned as a 32-byte raw string. Useful when

6 items

stdlib::env

Number of CLI arguments. Index `0` is the program path; user args

11 items

stdlib::fs

Read the entire contents of `path` into a heap-allocated string.

20 items

stdlib::hex

Lowercase hex of every byte. Two hex digits per input byte.

2 items

stdlib::http

One incoming HTTP request, fully buffered. Lifetime is tied to the

8 items

stdlib::io

Read one line from stdin, including the trailing newline if present.

9 items

stdlib::iter

Apply `f` to each element, returning a new Vector.

18 items

stdlib::json

Two-way JSON binding. User structs that implement this trait can

10 items

stdlib::lint

Build the canonical `lint:<category>` code from a category name.

9 items

stdlib::math

Square root. Returns NaN for negative input.

27 items

stdlib::os

OS family the binary was compiled for. `"linux"`, `"windows"`, `"macos"`,

34 items

stdlib::set

A set of strings backed by `HashMap<bool>`.

1 item

stdlib::signal

Internal helper called from the c_raw reader thread to push signum onto

6 items

stdlib::spinner

Start a spinner with `msg` as the initial status. Replaces any

3 items

stdlib::strings

Concatenate every element of `parts` with `sep` between them.

1 item

stdlib::sync

A mutex protecting a value of type T. Use `.with()` for the common

3 items

stdlib::tar

Extract a tar archive in memory into `out_dir`. Returns the number

1 item

stdlib::testing

Fails the current test if `cond` is false. The macro evaluates `cond`

15 items

stdlib::time

Monotonic-clock stopwatch. Reads `now_ns()` (the runtime's monotonic

27 items

stdlib::url

Percent-encode `s` for use in a URL component. Unreserved characters

2 items

stdlib::http::form

Ordered list of (name, value) pairs. Order matters — repeating a

3 items

stdlib::http::h2

Frame type opcodes (RFC 7540 §11.2). Use these symbolic names instead

12 items

stdlib::http::hpack

Output of decode_block: a list of (name, value) pairs in wire order.

3 items

stdlib::http::sse

Build the wire bytes for one SSE event. Multiple `data: ...` lines

3 items

stdlib::net::dns

Resolve `host` to a list of IP addresses via the system resolver.

3 items

stdlib::net::ip

A v4 or v6 address. `kind` is 4 or 6; the other fields are

2 items

stdlib::net::ws

Frame opcodes (RFC 6455 §11.8). Compare against `WsMessage.kind`.

4 items