MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / main

Function main

examples/buffer_errors.rs:6–13  ·  view source on GitHub ↗

Fixing errors related to the `Buffer` trait. This example demonstrates some error messages that can come from using the `Buffer` trait and how to fix them.

()

Source from the content-addressed store, hash-verified

4//! `Buffer` trait and how to fix them.
5
6fn main() {
7 error_buffer_wrapper();
8 error_retry_closure();
9 error_retry_closure_uninit();
10 error_retry_indirect_closure();
11 error_empty_slice();
12 error_array_by_value();
13}
14
15fn error_buffer_wrapper() {
16 use rustix::buffer::Buffer;

Callers

nothing calls this directly

Calls 6

error_buffer_wrapperFunction · 0.85
error_retry_closureFunction · 0.85
error_empty_sliceFunction · 0.85
error_array_by_valueFunction · 0.85

Tested by

no test coverage detected