Berildocs GitHub

Memory cards

Rust types are not C types

confidence: highupdated: 2026-11-24status: activererustlayout

Claim#

A slice is pointer plus length. A trait object is data plus vtable. Option uses a null niche. Async is a state machine.

Test#

Before reading a method, name the two-field structs and the function-pointer pairs. Map the state enum for async.

Proof#

A recovered prototype or struct that explains the call site.

Failure modes#

A C-string view truncates a &str. Monomorphized copies are not separate features.